From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/web/http/headers/dnt/index.html | 83 +++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 files/zh-tw/web/http/headers/dnt/index.html (limited to 'files/zh-tw/web/http/headers/dnt') diff --git a/files/zh-tw/web/http/headers/dnt/index.html b/files/zh-tw/web/http/headers/dnt/index.html new file mode 100644 index 0000000000..81c152f6a5 --- /dev/null +++ b/files/zh-tw/web/http/headers/dnt/index.html @@ -0,0 +1,83 @@ +--- +title: DNT +slug: Web/HTTP/Headers/DNT +translation_of: Web/HTTP/Headers/DNT +--- +
{{HTTPSidebar}}
+ +

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

+ + + + + + + + + + + + +
標頭類型{{Glossary("Request header")}}
{{Glossary("Forbidden header name")}}
+ +

語法

+ +
DNT: 0
+DNT: 1
+
+ +

指令

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

示例

+ +

請參考 JavaScript 的 Do Not Track

+ +

用戶的 DNT 設定也能透過 JavaScript 的 {{domxref("Navigator.doNotTrack")}} 設定檢查:

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

規範

+ + + + + + + + + + + + + + +
規範狀態註解
{{SpecName('Tracking','#dnt-header-field', 'DNT Header Field for HTTP Requests')}}{{Spec2("Tracking")}}初始定義
+ +

瀏覽器相容性

+ + + +

{{Compat("http.headers.DNT")}}

+ +

參見

+ + -- cgit v1.2.3-54-g00ecf