Do Not Track: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
The technology is expected to be regulated.<ref>{{cite news|url=http://blogs.wsj.com/digits/2011/03/14/firefox-maker-do-not-track-likely-to-be-regulated/|title=Firefox Maker: ‘Do Not Track’ Likely to Be Regulated - Digits - WSJ|date=March 14, 2011|publisher=Wall Street Journal|accessdate=15 March 2011}}</ref> |
The technology is expected to be regulated.<ref>{{cite news|url=http://blogs.wsj.com/digits/2011/03/14/firefox-maker-do-not-track-likely-to-be-regulated/|title=Firefox Maker: ‘Do Not Track’ Likely to Be Regulated - Digits - WSJ|date=March 14, 2011|publisher=Wall Street Journal|accessdate=15 March 2011}}</ref> |
||
GET /thirdpartycontent.html HTTP/1.1 |
|||
Host: thirdparty.example.com |
|||
DNT: 1 |
|||
<source lang="php"> |
|||
<?php |
|||
$DoNotTrackHeader = "DNT"; |
|||
$DoNotTrackValue = "1"; |
|||
$phpHeader = "HTTP_" . strtoupper(str_replace("-", "_", $DoNotTrackHeader)); |
|||
if ((array_key_exists($phpHeader, $_SERVER)) and ($_SERVER[$phpHeader] == $DoNotTrackValue)) { |
|||
// Do Not Track is enabled |
|||
} else { |
|||
// Do Not Track is not enabled |
|||
} |
|||
?> |
|||
</source> |
|||
==References== |
==References== |
||
{{reflist}} |
{{reflist}} |
||
== External links == |
|||
* http://donottrack.us/ |
|||
* http://datatracker.ietf.org/doc/draft-mayer-do-not-track/?include_text=1 |
|||
{{internet-stub}} |
{{internet-stub}} |
Revision as of 20:42, 22 March 2011
The do not track header is a proposed HTTP field that would request a web application to disable their tracking of a user. The header is not yet widely supported and has not yet been standardized.
It is supported by Firefox 4.
Microsoft has announced that the header will be supported in Internet Explorer 9.[1]
The technology is expected to be regulated.[2]
GET /thirdpartycontent.html HTTP/1.1 Host: thirdparty.example.com DNT: 1
<?php
$DoNotTrackHeader = "DNT";
$DoNotTrackValue = "1";
$phpHeader = "HTTP_" . strtoupper(str_replace("-", "_", $DoNotTrackHeader));
if ((array_key_exists($phpHeader, $_SERVER)) and ($_SERVER[$phpHeader] == $DoNotTrackValue)) {
// Do Not Track is enabled
} else {
// Do Not Track is not enabled
}
?>
References
- ^ Angwin, Julia (FEBRUARY 25, 2011). "Microsoft Endorses Do-Not-Track Tool - WSJ.com". Wall Street Journal. Retrieved 15 March 2011.
{{cite news}}
: Check date values in:|date=
(help) - ^ "Firefox Maker: 'Do Not Track' Likely to Be Regulated - Digits - WSJ". Wall Street Journal. March 14, 2011. Retrieved 15 March 2011.