Share this Article !

How To Remove Server Name From Apache Response Header

How To Remove Server Name From Apache Response Header

the HTTP headers sent by the remote web server disclose information that can aid an attacker, such as the server version and languages used by the web server.

  • ServerSignature Off: This directive hides the server version and OS details on server-generated pages like error messages.
  • ServerTokens Prod: Limits the information returned in the Server HTTP header to only the word Apache, preventing exposure of the exact version number or OS details.
  • SetOutputFilter DEFLATE: Enables output compression using mod_deflate, which reduces the size of the data sent to the client and improves loading times.

we can remove server name from Apache response header by:

  1. Open Apache Config File

    go to xampp\apache\conf\ httpd.conf 

    open and edit the code to hide server information in Apache as below:

    # Disable the server signature (hides server version details)
    ServerSignature Off
    # Show only minimal information about the server version
    ServerTokens Prod
    # Enable compression to improve website performance
    SetOutputFilter DEFLATE

  2. or locate .htaccess file (for wordpress)

    open .htaccess file and edit it by adding code as below:

    # Disable the server signature (hides server version details)
    ServerSignature Off
    # Show only minimal information about the server version
    ServerTokens Prod
    # Enable compression to improve website performance
    SetOutputFilter DEFLATE
  3. Restart Apache Server

    Restart Apache via the XAMPP control panel to apply the changes.

Share this Article !


You may like this
Top 10 most popular programming language in 2025

Top 10 most popular programming language in 2025

Nowadays, we know and see coding skills hold immense value in technology beyond 1990 till 2025, with effects on career advancement being profound. Extremely popular languages such as Python, JavaScript, and Java...
Top 11 Testing methodologies for web application security

Top 11 Testing methodologies for web application security

Web app security testing methodologies make sure that apps are strong against prospective weaknesses and threats. Here are some of the most popular and useful methodologies:
how to improve seo and increase audience for your website

how to improve seo and increase audience for your website

To increase your audience and boost your SEO (Search Engine Optimization), you’ll need to implement a mix of technical strategies, content creation, and marketing campaigns. This is a step-by-step guide to help...
Beware of new scams by remote control (Wireless paring)-Social engineering

Beware of new scams by remote control (Wireless paring)-Social engineering

Considerable online activity surge necessitates awareness of lurking scams, phishing schemes, and other cyber threats that exploit electronic devices. Fraudsters and cybercrooks often get hold of your address, phone number, and other...
Moodle – how get total course completed and login chart in current year into dashboard page

Moodle – how get total course completed and login chart in current year into dashboard page

To add the total course completed and login chart in the current year to the dashboard, you need to get a query from course complete and login from the database. We created...
(100% worked) How to fix PHP is not recognized as an internal or external command for Xampp Or Wamp

(100% worked) How to fix PHP is not recognized as an internal or external command for Xampp Or Wamp

5 steps for fixing PHP is not recognized as an internal or external command for Xampp rr Wamp. You can follow the tips below. Go to My Computer->properties -> Advanced system setting->...