Server Header Explained

What the HTTP Server header does and when it's used.

Published October 17, 2026

Server describes the software handling the request, such as nginx/1.27. It helps debugging but can aid attackers.

How it works

Many sites hide the version number.

The Server header is part of the HTTP message and is case-insensitive in name.

In a real exchange

curl -i https://example.com/
Server: nginx
Where Server appears.

Practical examples

The header

Server: nginx

Set or use it in code

server_tokens off;

Inspect it

curl -sI https://example.com | grep -i 'server'

Common mistakes

  • Exposing exact versions
  • Relying on hiding it as security
  • Misleading values breaking tools

Key takeaways

  • Server: Server describes the software handling the request, such as nginx/1.27.
  • Check it in browser DevTools → Network.
  • Test with curl -I before deploying.

FAQ

Should I remove it?

Hiding the version is a minor hardening step.

Is Server case sensitive?

Header names are case-insensitive; values may not be.

More HTTP articles