DNTDo Not Track,請勿追蹤)請求標頭表明用戶針對追蹤程式的設定。它能讓用戶表達自己相較於個人化設定,更在乎個人隱私。

標頭類型 Request header
Forbidden header name

語法

DNT: 0
DNT: 1

指令

0
用戶允許目標網站追蹤之。
1
用戶不允許目標網站追蹤。

示例

請參考 JavaScript 的 Do Not Track

用戶的 DNT 設定也能透過 JavaScript 的 Navigator.doNotTrack 設定檢查:

navigator.doNotTrack; // "0" or "1"

規範

規範 狀態 註解
Tracking Preference Expression (DNT)
The definition of 'DNT Header Field for HTTP Requests' in that specification.
Candidate Recommendation 初始定義

瀏覽器相容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 23Edge Full support YesFirefox Full support 4IE Full support 9Opera Full support YesSafari Full support 6WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support

參見

文件標籤與貢獻者

此頁面的貢獻者: iigmir
最近更新: iigmir,