Skip to content

PHP security updates released 21 October 2026. The flaws are now being actively exploited, so check your website's PHP is up to date. Patches are available for older PHP versions too. What it means for your website

Version disclosure

X-Powered-By and version leaks: what your website gives away

Many websites announce exactly what software they run, and which version. It's rarely urgent and usually simple to fix, but it's worth keeping in proportion.
Published 4 November 2026 · Last updated 4 November 2026 · By Host Dada

What is being disclosed

Alongside each page, your server sends HTTP headers that nobody sees in normal browsing. Some of them name your software out of old habit, and the page's HTML can do the same. Anyone can read them with a single request:

curl -sI https://www.example.co.uk/

HTTP/1.1 200 OK
Server: Apache/2.4.58 (Ubuntu)
X-Powered-By: PHP/8.3.6

How much does it matter?

Less than some security reports suggest. Automated tools scan the web looking for particular versions of software, so advertising yours can make you easier to find. But hiding a version number doesn't fix anything: an out-of-date site is still out of date, and many attacks are simply tried against every site without looking at version numbers first.

So treat this as tidying up. Keeping the software up to date matters far more than hiding what it is. That's why our checker gives it low priority, and reports it as something to tidy up, not as a fault.

A version number can also mislead. Linux distributions often add security fixes to older releases without changing the main number, so a server showing Apache/2.4.58 (Ubuntu) may have more fixes than that number suggests. Don't assume a site is vulnerable from a header alone, and don't assume yours is safe from one either.

What our checker flags

The check reads your home page's response and lists anything it finds under "Public technology disclosures":

  • Server, only if it includes a version number. Apache/2.4.58 is listed, but plain Apache or nginx isn't.
  • X-Powered-By, with any value, as it exists only to name your software.
  • Other revealing headers when they contain a number: X-AspNet-Version, X-AspNetMvc-Version, X-Generator, X-Drupal-Cache, X-Runtime and X-Version.
  • The HTML generator tag, when it gives a WordPress, Joomla or Drupal version.

If your PHP version is disclosed, we also compare it with PHP's official support dates and security advisories, and show the result in your report. If it's hidden, we show "Not Publicly Disclosed", which is normal. You can then check your PHP version yourself, or find it in WordPress. Finding nothing doesn't mean your software is up to date, only that it isn't being advertised.

How to remove them

You or your host can make these changes. On shared hosting, some of these settings may only be available to your provider.

PHP

In php.ini, or your host's PHP settings. This removes the X-Powered-By: PHP header:

expose_php = Off

Apache

ServerTokens belongs in the main server configuration and won't work in .htaccess. Removing other headers requires mod_headers:

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

nginx

This removes the version from the Server header. Use fastcgi_hide_header if PHP's header is being passed through:

server_tokens off;
fastcgi_hide_header X-Powered-By;

Node.js and Next.js

// Express
app.disable("x-powered-by");

// next.config.js
module.exports = { poweredByHeader: false };

ASP.NET on IIS

<!-- web.config -->
<system.web>
  <httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
  <httpProtocol>
    <customHeaders>
      <remove name="X-Powered-By" />
    </customHeaders>
  </httpProtocol>
</system.webServer>

WordPress generator tag

Many security plugins can do this for you. To do it yourself, add this to a small custom plugin or your child theme's functions.php. The filter also removes the version from your RSS feeds:

add_filter( 'the_generator', '__return_empty_string' );

Check that it worked

Run the curl command above or re-run our check once any caching has cleared. If a header is still there, something else may be adding it: CDNs, caching plugins and web application firewalls can all add their own. You can also take the opportunity to add the protective headers covered in our security headers guide.

If your report shows an older PHP version, that's the part to act on. Read our PHP security warning about the fixes released in October 2026.

Run the free check

Check your website now. It's free, needs no account and takes a few seconds. You can read exactly how the check works and what it can't see, or find out more about the Security Checker on hostdada.co.uk.

Check your website now

Free, passive and takes a few seconds. No account needed.

Check My Website — Free