Software versions in response headers
One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.
What audibot checks
The Server, X-Powered-By, X-AspNet-Version and X-Generator headers on the home page. A value that contains a digit is taken to name a version.
- Pass
None of these headers contains a version number.
- Warning
At least one of them does, e.g.
Server: nginx/1.18.0orX-Powered-By: PHP/8.1.2.
Why it matters
An exact version tells anyone which published vulnerabilities apply without them having to probe. Hiding it does not patch anything, but it stops the site from advertising which patches it is missing.
How do I hide the server version in HTTP headers?
Turn version disclosure off in each layer that adds a header: the web server, the language runtime and the framework.
nginx
server_tokens off;Apache
ServerTokens Prod
ServerSignature OffPHP (php.ini)
expose_php = OffExpress
app.disable('x-powered-by')ASP.NET (web.config)
<system.web>
<httpRuntime enableVersionHeader="false" />
</system.web>Related tools
- Security headers checker — Check the HTTP security headers sent by a homepage.
- Security headers generator — Write security header settings for your web server or hosting platform.
Other checks in Security headers
- Strict-Transport-Security (HSTS) header
- Content-Security-Policy header
- X-Content-Type-Options: nosniff
- Clickjacking protection (frame-ancestors / X-Frame-Options)
- Referrer-Policy header
- Permissions-Policy header
- Cookie flags: Secure, SameSite and HttpOnly
- security.txt
Security headers in the methodology ·All guides
This check is one step of the website launch checklist.
Check your site
audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.