Server header


目录

The HTTP Server {{Glossary("response header")}} describes the software used by the origin server that handled the request and generated a response.

The benefits of advertising the server type and version via this header are that it helps with analytics and identifying how widespread specific interoperability issues are. Historically, clients have used the server version information to avoid known limitations, such as inconsistent support for range requests in specific software versions.

[!WARNING] The presence of this header in responses, especially when it contains fine-grained implementation details about server software, may make known vulnerabilities easier to detect.

Too much detail in the Server header is not advised for response latency and the security reason mentioned above. It's debatable whether obscuring the information in this header provides much benefit because fingerprinting server software is possible via other means. In general, a more robust approach to server security is to ensure software is regularly updated or patched against known vulnerabilities instead.

Header type {{Glossary("Response header")}}

Syntax

Server: <product>

Directives

Examples

Server: Apache/2.4.1 (Unix)

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also


版本号 #2
由 壳壳虫 创建于 2026-10-31 03:27:53 UTC
由 壳壳虫 更新于 2026-10-31 03:27:53 UTC