Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Server version banners exposed: how to find and hide them

OPS-189Low impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Every time a browser asks your site for a page, your server replies with headers: small lines of information sent before the page itself. Some servers use these lines to announce what they are, for example Server: nginx/1.18.0 or X-Powered-By: PHP/7.4.3. That text is a version banner.

Why it costs you leads or sales

On its own, a banner does not break your forms or checkout, and the business impact is low. The risk is indirect. Automated scanners read banners to find sites running software with known vulnerabilities, so an exact version makes you easier to target. If a hack then leads to a defaced page, a malware warning or a broken checkout, you lose leads and sales.

How a banner can lead to lost leads
  1. Banner shows versionServer: Apache/2.4.49
  2. Scanner matches known flawVersion looked up in public vulnerability lists
  3. Site compromisedDefacement, redirects or malware
  4. Forms and checkout failVisitors leave or are warned off

The banner itself is harmless; the chain below only happens if the software is also out of date.

How to check if your site has it

You only need to look at the response headers for your home page and a page that does not exist.

Check your headers
  1. Request the headers

    In a terminal run the command in the code block below. Replace the domain with yours.

  2. Read the Server and X-Powered-By lines

    A bare name such as Server: nginx is fine. A version number (nginx/1.18.0, PHP/7.4.3) or an operating system name (Ubuntu) is a banner you should hide.

  3. Check an error page

    Open https://example.com/this-page-does-not-exist in a browser. If the error page prints the server name and version at the bottom, the banner is also exposed there.

  4. No terminal?

    Open browser developer tools (F12), go to the Network tab, reload, click the first request and read Response Headers.

Show response headersbash
curl -sI https://example.com | grep -iE '^(server|x-powered-by|x-generator|x-aspnet-version)'

How to fix it

The fix depends on who controls your server. On managed hosting you may only be able to change the CMS output or ask support. Pick the tab that matches your setup.

Hide version banners
  1. Apache

    In your main config (apache2.conf or httpd.conf) add ServerTokens Prod and ServerSignature Off. Reload Apache.

  2. Nginx

    In the http block of nginx.conf add server_tokens off; then reload Nginx. Removing the Server header completely needs the headers-more module.

  3. PHP

    In php.ini set expose_php = Off, then restart PHP-FPM or Apache. This removes the X-Powered-By: PHP header.

  4. IIS / ASP.NET

    In web.config add enableVersionHeader="false" under system.web/httpRuntime and remove the X-Powered-By custom header under system.webServer/httpProtocol.

Nginx: hide the versionnginx
http {
    server_tokens off;
}
Apache: hide the version (httpd.conf or apache2.conf)text
ServerTokens Prod
ServerSignature Off
PHP: stop sending X-Powered-By (php.ini)text
expose_php = Off
Response headers before and after

Before

  • Server: Apache/2.4.41 (Ubuntu)
  • X-Powered-By: PHP/7.4.3
  • 404 page prints server version

After

  • Server: Apache
  • No X-Powered-By header
  • 404 page shows no version

How to confirm it's fixed

Verify the change
  1. Reload the server

    Config changes only apply after a reload or restart.

  2. Run curl again

    Repeat the curl -sI command. Server should show no version number and X-Powered-By should be gone.

  3. Check the 404 page

    Load a non-existent URL and confirm no server signature appears.

  4. Clear caches

    If a CDN caches headers, purge it, then test again.

How to prevent it happening again

Keep banners hidden
  • Store the hardening settings in your server configuration or deployment scripts so a rebuild keeps them
  • Re-check headers after server upgrades, PHP version changes or a host migration
  • Check headers on staging before launching a new server
  • Keep the server, PHP and CMS updated, since banners are only a small layer
  • Add a header check to your regular security review

How FunnelGuard handles this

FunnelGuard does not check for server version banners today. It is a possible future check. FunnelGuard is a synthetic monitoring service: a robot visitor runs your real customer journeys (lead forms, checkouts, booking and chat buttons), checks each step and the tracking hits sent to ad and analytics platforms, and confirms test leads reach your inbox and CRM.

Questions people ask

What is a server version banner?

It is text in a website's HTTP response that names the server software and often its version, such as Server: nginx/1.18.0 or X-Powered-By: PHP/7.4.3. Browsers ignore it, but anyone can read it with a tool like curl.

Is exposing the server version a security risk?

It is a low risk on its own. It helps attackers and automated scanners match your exact version to known vulnerabilities. The real danger is running outdated software, so hiding the banner should go alongside regular updates.

How do I hide the Server header in Nginx?

Add server_tokens off; inside the http block of nginx.conf and reload Nginx. This removes the version number but leaves the word nginx. To remove the header entirely you need the headers-more module.

How do I remove X-Powered-By: PHP from my headers?

Set expose_php = Off in php.ini and restart PHP-FPM or your web server. If you cannot edit php.ini, ask your host, as many panels have a PHP settings page.

How do I hide the Apache version?

Add ServerTokens Prod and ServerSignature Off to your Apache configuration, then reload Apache. This reduces the Server header to just Apache and removes the signature from error pages.

How can I check what headers my website sends?

Run curl -I https://yourdomain.com in a terminal, or open your browser's developer tools, go to the Network tab, select the first request and read Response Headers. Look at Server and X-Powered-By.

Can I change server headers on Shopify, Wix or Squarespace?

No. These platforms set the response headers themselves and do not let you edit them. You can only control content in your theme, such as a generator meta tag.

Does FunnelGuard check for exposed server version banners?

Not yet. It is a possible future check. FunnelGuard currently monitors your funnel journeys, tracking hits and lead delivery, so you would check headers manually with curl or a header scanner.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: site safety (Stage 26, daily): Server / X-Powered-By with a version.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.