DNT
非推奨;: この機能は非推奨になりました。まだ対応しているブラウザーがあるかもしれませんが、すでに関連するウェブ標準から削除されているか、削除の手続き中であるか、互換性のためだけに残されている可能性があります。使用を避け、できれば既存のコードは更新してください。このページの下部にある互換性一覧表を見て判断してください。この機能は突然動作しなくなる可能性があることに注意してください。
DNT
(Do Not
Track) リクエストヘッダーは、ユーザーのトラッキングの設定を示します。これにより、ユーザーはパーソナライズされたコンテンツではなく、プライバシーを優先するかどうかを指定できます。
構文
DNT: 0
DNT: 1
DNT: null
ディレクティブ
例
JavaScript から Do Not Track の状態を読み取る
ユーザーの DNT 設定は Navigator.doNotTrack
プロパティを使用して JavaScript から読み取ることもできます。
navigator.doNotTrack; // "0" or "1"
仕様書
No specification found
No specification data found for http.headers.DNT
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
DNT |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.