Server

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Server 標頭描述了處理請求的原始伺服器(即生成回應的伺服器)所使用的軟體。

警告: 避免過於詳細的 Server 值,因為它們可能會暴露信息,使攻擊者更容易利用已知的安全漏洞。

標頭類型 回應標頭
禁止修改的標頭

語法

http
Server: <product>

指令

<product>

處理請求的軟體或產品的名稱。通常格式類似於 User-Agent

包含多少細節是一個值得平衡的問題;暴露作業系統版本可能是個壞主意,如前面關於過於詳細的值的警告所述。然而,暴露 Apache 版本幫助瀏覽器解決了這些版本中與 Content-EncodingRange 結合使用的錯誤。

範例

http
Server: Apache/2.4.1 (Unix)

規範

Specification
HTTP Semantics
# field.server

瀏覽器相容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Server

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

參見