Skip to main content
HeadersLow PriorityFree

Server information disclosure

Updated November 2026·SecScanner Team

Server headers that reveal software versions can help attackers identify vulnerable components to exploit.

11% of the 101 most-visited sites we scan fail this check. See the full data.

Results in 1–3 minutes · Free · No signup required

Want the result for your own site? Free Security Headers Checker — paste your domain, get the report.

Why It Matters

Knowing your exact server software and version helps attackers find known vulnerabilities. Security through obscurity isn't sufficient alone, but reducing information disclosure is good practice.

How We Check

We check Server and X-Powered-By headers for version information that could aid attackers.

Good vs Bad Values

Good and bad values for Server information disclosure
ValueVerdictWhy
Server: nginxGoodNames the product without a version. This is the usual end state after turning version tokens off; it still reveals the software family, which is hard to hide.
Server: ApacheGoodWhat Apache sends with `ServerTokens Prod`. No version and no module list.
Server: cloudflareGoodA CDN edge name, not your origin stack, and it carries no version.
Header absentGoodNothing disclosed. Removing the header entirely is allowed; HTTP does not require it.
Server: nginx/1.25.3BadExact version. Attackers match it against public vulnerability lists and know at once whether you are behind on patches.
Server: Apache/2.4.58 (Ubuntu) OpenSSL/3.0.13BadVersion plus operating system and library versions. This is the default Apache output without ServerTokens Prod.
Server: Microsoft-IIS/10.0BadThe scanner flags any Server value that contains digits or dots, which covers a full IIS version.
X-Powered-By: ExpressBadEven without a version, X-Powered-By is flagged whenever it is present: it tells scanners which framework to target.
X-Powered-By: PHP/8.2.12BadLanguage and exact version. PHP adds it by default unless `expose_php` is off.
X-AspNet-Version: 4.0.30319BadASP.NET sends this unless version headers are disabled in configuration.

How to Fix

Configure your web server to remove or generalize the Server header. Remove X-Powered-By header entirely. In Express: app.disable('x-powered-by').

Nginx — http block of nginx.conf (this hides the version; use headers-more to drop the header completely):

server_tokens off;
# with the headers-more module:
more_clear_headers Server;
proxy_hide_header X-Powered-By;

Apache:

ServerTokens Prod
ServerSignature Off
Header always unset X-Powered-By
Header unset X-Powered-By

PHP (php.ini): set expose_php = Off. Express: app.disable("x-powered-by"), or app.use(helmet()), which removes it. Next.js — next.config.js:

module.exports = {
  poweredByHeader: false,
};

IIS / ASP.NET (web.config): remove the custom header and hide the Server header (IIS 10 and later):

<system.web>
  <httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
  <security>
    <requestFiltering removeServerHeader="true" />
  </security>
  <httpProtocol>
    <customHeaders>
      <remove name="X-Powered-By" />
    </customHeaders>
  </httpProtocol>
</system.webServer>

Cloudflare: the edge sets Server: cloudflare itself, which is fine; use a Response Header Transform Rule to remove X-Powered-By coming from your origin. Verify with curl -sI https://example.com | grep -iE '^(server|x-powered-by|x-aspnet)'; the command should print nothing, or server: nginx with no digits.

Common Mistakes

  • Setting `server_tokens off` and considering Nginx done. That removes the version but leaves `Server: nginx`; fully removing the header needs the optional `headers-more` module (`more_clear_headers Server;`).
  • Fixing the Server header at the origin while a CDN or load balancer adds its own, or the other way round. Check the final response with `curl -sI`.
  • Leaving framework headers: `X-Powered-By` (Express, PHP, Next.js), `X-AspNet-Version`, `X-AspNetMvc-Version`, `X-Generator`, and CMS-specific headers. They are all worth removing, and the first four are flagged.
  • Treating this as a fix for real vulnerabilities. Hiding versions raises the cost of casual scanning only; patch the software too, because attackers can still fingerprint behavior.
  • Removing the header only on HTML responses. Static files, API routes and error pages are served by different code paths and often still leak the version.
  • Changing the value to a fake product name. It breaks nothing but adds no protection and confuses your own monitoring; blank or generic is enough.

Frequently Asked Questions

What is Server information disclosure?

Server headers that reveal software versions can help attackers identify vulnerable components to exploit.

Why does Server information disclosure matter for website security?

Knowing your exact server software and version helps attackers find known vulnerabilities. Security through obscurity isn't sufficient alone, but reducing information disclosure is good practice.

How do I fix Server information disclosure issues?

Configure your web server to remove or generalize the Server header. Remove X-Powered-By header entirely. In Express: app.disable('x-powered-by').

Related Security Checks

Related Tool

Security Headers Checker

Run all 10 related checks with our free security headers checker

Check Your Website Now

Run a free security scan to check for Server information disclosure issues and 61 other security checks.

Scan Your Website Free