Guides · Security headers

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.

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 Off

PHP (php.ini)

expose_php = Off

Express

app.disable('x-powered-by')

ASP.NET (web.config)

<system.web>
  <httpRuntime enableVersionHeader="false" />
</system.web>

Related tools

Other checks in Security headers

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.