X-Powered-By and ASP.NET version headers

Why headers such as X-Powered-By tell the world which technology your site runs, how the scan flags them, and how to remove them.

What AuditX checks

The scan reads the response headers your page was served with and looks for X-Powered-By. If that header is missing, it looks for X-AspNet-Version, and then for X-AspNetMvc-Version. It uses the first one it finds and lists its values. It warns when the value has a dotted version number, such as PHP/8.2.35 or an X-AspNet-Version of 4.0.30319. A bare name such as Next.js or Express is informational: a visitor can usually tell the framework from the page itself, and only the version maps to a list of known security holes. It passes when none of these headers is sent. Other headers that name your software, and other pages, are not looked at. This check has no not-measured state.

Why it matters

These headers announce the technology behind your site, such as PHP, Express or ASP.NET, and often the version. Anyone can read them, and automated scanners do.

It helps an attacker pick which known flaws to try. Removing the header is cheap and removes that hint. It does not replace keeping the software updated.

How to fix it

  1. Find where the header comes from: the web framework, PHP, the web server or a plugin.
  2. For PHP set expose_php = Off in php.ini, or remove the header with a server rule. For Next.js set poweredByHeader to false in next.config.js. For Express call app.disable('x-powered-by'). For ASP.NET remove the header in the web.config or in IIS settings.
  3. If your host controls the setup, ask them to remove X-Powered-By. Many managed hosts have a setting for it.
  4. Reload the page and read its response headers in your browser developer tools to confirm the header is gone.
# php.ini
expose_php = Off

# Apache (.htaccess)
Header unset X-Powered-By

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.