DNT header
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
Note:
Đặc tả DNT (Do Not Track) đã bị ngừng. Xem Navigator.doNotTrack để biết thêm thông tin.
Tiêu đề HTTP DNT (Do Not Track) request header chỉ báo sở thích theo dõi của người dùng.
Nó cho phép người dùng chỉ báo liệu họ có muốn quyền riêng tư thay vì nội dung được cá nhân hóa hay không.
DNT đã lỗi thời, thay thế bằng Global Privacy Control, được truyền đạt đến máy chủ bằng tiêu đề Sec-GPC, và có thể truy cập với máy khách từ navigator.globalPrivacyControl.
| Loại tiêu đề | Request header |
|---|---|
| Forbidden request header | Có |
Cú pháp
DNT: 0
DNT: 1
DNT: null
Chỉ thị
Ví dụ
>Đọc trạng thái Do Not Track từ JavaScript
Sở thích DNT của người dùng cũng có thể được đọc từ JavaScript bằng thuộc tính Navigator.doNotTrack:
navigator.doNotTrack; // "0", "1" or null
Đặc tả
Một phần của đặc tả Tracking Preference Expression (DNT) đã bị ngừng.
Khả năng tương thích trình duyệt
Xem thêm
Navigator.doNotTrack- Tiêu đề
Tk - Do Not Track trên Wikipedia
- What Does the "Track" in "Do Not Track" Mean? – EFF
- DNT trên Electronic Frontier Foundation
- Trợ giúp cài đặt DNT trong trình duyệt:
- GPC - Global Privacy Control