Skip to content

Kompile Learn

Hide software version numbers

Stop your server from announcing exactly which software and version it runs.

What it is

Headers like Server: Apache/2.4.29 or X-Powered-By: PHP/7.2 tell everyone your exact versions.

Why it matters

Attackers scan for versions with known bugs. Hiding them does not fix old software, but it stops you being an easy match in automated scans. Keep software updated too.

How to fix it

nginx

server_tokens off;

Apache

ServerTokens Prod ServerSignature Off

PHP (php.ini)

expose_php = Off

Express

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

Does your site have this problem?

Kompile Scan checks for this and the other problems in these guides in under a minute. Free for one site.

Check my site