How to fix server version on PrestaShop
Remove or suppress HTTP response headers that advertise your server software name and version to the public internet.
Steps for PrestaShop
- Add 'expose_php = Off' in 'php.ini' to remove 'X-Powered-By: PHP/x.x'.
- In Apache, add 'Header unset X-Powered-By', 'ServerTokens Prod', and 'ServerSignature Off' to your VirtualHost or '.htaccess'.
- In Nginx, add 'server_tokens off;' and 'fastcgi_hide_header X-Powered-By;' to your server block.
- Optionally install a PrestaShop security module (e.g. 'Security Lite') that can add/remove response headers from the admin back office.
- Verify via DevTools or 'curl -I' that the headers no longer reveal software versions.
What is server version?
Every time a browser (or a bot) requests a page from your store, your web server sends back a set of "response headers" — invisible metadata about the response. Two of these headers, `Server` and `X-Powered-By`, often broadcast exactly what software is running your site and which version it is (for example, `Server: Vercel` or `X-Powered-By: Next.js`). This is called "server version disclosure" or "technology fingerprinting." While the header itself doesn't break anything, it acts like a name-badge that tells the whole internet: "Here's exactly what I'm running."
Attackers routinely scan millions of websites looking for servers running known vulnerable versions of software. When your headers announce your exact stack, you become a much easier target — automated exploit tools can match your version against public vulnerability databases (CVEs) and launch targeted attacks in seconds, without any human involvement. Suppressing these headers is a recognised security hardening step that reduces your "attack surface" and is increasingly expected by security audits, PCI-DSS assessments, and enterprise buyers reviewing your store. It also prevents competitors or scrapers from trivially identifying and copying your technology stack. Fixing it is usually a quick-win configuration change that has zero impact on site speed or user experience.
See the complete Server version guide for every platform and the full background.
Not sure if your PrestaShop store has this?
Run a free SEOLZ scan — we’ll find server version and every other issue across your whole site.
Scan my site free