Server - HTTP 编辑
The Server
header describes the software used by the origin server that handled the request — that is, the server that generated the response.
Avoid overly-detailed Server
values, as they can reveal information that might make it (slightly) easier for attackers to exploit known security holes.
Header type | Response header |
---|---|
Forbidden header name | no |
Syntax
Server: <product>
Directives
<product>
The name of the software or product that handled the request. Usually in a format similar to
User-Agent
.
How much detail to include is an interesting balance to strike; exposing the OS version is probably a bad idea, as mentioned in the earlier warning about overly-detailed values. However, exposed Apache versions helped browsers work around a bug those versions had with Content-Encoding
combined with Range
.
Examples
Server: Apache/2.4.1 (Unix)
Specifications
Specification | Title |
---|---|
RFC 7231, section 7.4.2: Server | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论