Skip to content

Security headers

Information-disclosure headers

Headers such as Server and X-Powered-By can reveal your software and its exact version; hiding the version is a small hardening step.

Scanetra rating: ObservationCheck HDR-05

Why it matters

It isn't a vulnerability, but a version number lets an attacker match your site to known flaws in seconds. A product name alone, like a CDN's name, reveals little.

What Scanetra looks for

  • Server, X-Powered-By and similar headers, and whether they include a version number.

It reads only your homepage's public response. How a scan works

How to fix it

nginx

server_tokens off;

Apache

ServerTokens Prod
ServerSignature Off

PHP

In php.ini, to remove X-Powered-By: PHP/…

expose_php = Off

Express

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

Next.js

In next.config:

poweredByHeader: false

Replace example.com with your own domain, and test changes on a staging copy first where you can.

Check that it worked

The response headers no longer show a version number. Then scan again.

Check your own site

A free scan tells you whether your site passes this check, and the 24 others.

Scan a website