title | slug | l10n | ||
---|---|---|---|---|
Server |
Web/HTTP/Headers/Server |
|
{{HTTPSidebar}}
Server
标头描述了处理请求的源服务器(即生成响应的服务器)所使用的软件。
Warning
避免使用过于详细的 Server
值,因为它们可能会透露信息,使攻击者(更容易)利用已知的安全漏洞。
标头类型 | {{Glossary("Response header", "响应标头")}} |
---|---|
{{Glossary("Forbidden header name", "禁止修改的标头")}} | 否 |
Server: <product>
- <product>
- : 处理请求的软件或产品名称。通常格式类似于 {{HTTPHeader('User-Agent')}}。
包含多少细节是一个需要平衡的问题;暴露操作系统版本可能是个坏主意,正如前面关于过于详细的值的警告所提到的。不过,暴露的 Apache 版本可以帮助浏览器解决版本中的一个错误,即结合使用 {{HTTPHeader('Content-Encoding')}} 和 {{HTTPHeader('Range')}}。
Server: Apache/2.4.1 (Unix)
{{Specifications}}
{{Compat}}
- {{HTTPHeader("Allow")}}