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.
- Banner shows versionServer: Apache/2.4.49
- Scanner matches known flawVersion looked up in public vulnerability lists
- Site compromisedDefacement, redirects or malware
- 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.
Request the headers
In a terminal run the command in the code block below. Replace the domain with yours.
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.
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.
No terminal?
Open browser developer tools (F12), go to the Network tab, reload, click the first request and read Response Headers.
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.
Apache
In your main config (apache2.conf or httpd.conf) add ServerTokens Prod and ServerSignature Off. Reload Apache.
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.
PHP
In php.ini set expose_php = Off, then restart PHP-FPM or Apache. This removes the X-Powered-By: PHP header.
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.
Remove the generator tag
Add remove_action('wp_head', 'wp_generator'); to your child theme's functions.php or a small custom plugin. This hides the WordPress version in the page source.
Fix server headers at host level
Server and X-Powered-By come from the web server and PHP, not WordPress. Ask your host to apply the settings in the Custom code tab, or change PHP settings in your hosting panel if it offers a PHP configuration page.
Nothing to change at server level
Shopify controls the server headers and you cannot edit them. Your only control is the theme code, so check that your theme does not add a custom generator meta tag.
Server headers are managed by Wix
You cannot change response headers on Wix. There is no action to take beyond keeping any custom code snippets free of version details.
Server headers are managed by Squarespace
You cannot change response headers on Squarespace. Treat this as a platform setting outside your control.
Server headers are managed by Webflow
Headers are set by Webflow hosting. If you want control over them, put a CDN or proxy you manage in front of the site and modify headers there.
http {
server_tokens off;
}ServerTokens Prod
ServerSignature Offexpose_php = OffBefore
- 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
Reload the server
Config changes only apply after a reload or restart.
Run curl again
Repeat the curl -sI command. Server should show no version number and X-Powered-By should be gone.
Check the 404 page
Load a non-existent URL and confirm no server signature appears.
Clear caches
If a CDN caches headers, purge it, then test again.
How to prevent it happening again
- 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.