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.

The DNT (Do Not Track) request header indicates the user's tracking preference. It lets users indicate whether they would prefer privacy rather than personalized content.

Header type Request header
Forbidden header name yes


DNT: 0
DNT: 1
DNT: null



The user prefers to allow tracking on the target site.


The user prefers not to be tracked on the target site.


The user has not specified a preference about tracking.


Reading Do Not Track status from JavaScript

The user's DNT preference can also be read from JavaScript using the Navigator.doNotTrack property:

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


Tracking Preference Expression (DNT)
# dnt-header-field

Browser compatibility

BCD tables only load in the browser

See also