← Guides

How to hide your web server and framework version

By default many servers announce exactly what they run, for example nginx/1.18.0 or Express, in a header on every response. That helps an attacker pick the right known vulnerability. Hiding it removes the free hint; it does not replace keeping software up to date.

Updated 2026-10-23

Why it matters

  • Automated scanners match version strings against lists of known vulnerabilities.
  • Removing the banner takes one setting and never affects visitors.

How to fix it

  1. Stop the server from announcing its software version. This is set where the software runs (the origin), not at a CDN.

After you deploy, re-check the site. A CDN or the browser cache can keep serving the old headers for a few minutes.

nginx.conf (http block)
server_tokens off;
Apache config
ServerTokens Prod
ServerSignature Off

Common mistakes

  • Treating it as a fix for an outdated server. It is only a small hardening step; update the software too.
  • Hiding the header in one place while another layer (a CDN, a reverse proxy) adds its own. Check the final response.

Check that it worked

Run your domain through the free security headers checker. It takes a few seconds, needs no account, and shows anything still missing.

Open the security headers checker

Questions

Does hiding the version make me secure?
No. It removes information that makes an attacker's job easier, but the real protection is patching. Think of it as not leaving a label on the door.

Related guides

Don't want to check by hand? Upzy watches your site around the clock and tells you when a header, certificate or email record slips. Start free.