Skip to content

Commit

Permalink
Added IE9 info and TPL
Browse files Browse the repository at this point in the history
  • Loading branch information
sidstamm committed Mar 16, 2011
1 parent a4fcf0e commit f177ada
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dnt-enabler.tpl
@@ -0,0 +1,17 @@
msFilterList
#
# This tracking protection list only serves to enable the DNT: 1 http header
# without actually blocking anything.
#
# From Mozilla, March 2011
#
# Check for updates every month (maximum value allowed by the spec).
: Expires=30
#
# Whitelist hosting domain so when querying for updates, the request is not
# blocked.
#
+d dnt.mozilla.org
+d mozilla.org
+d mozilla.com

12 changes: 12 additions & 0 deletions index.php
Expand Up @@ -56,6 +56,18 @@
title="Mozilla's Do-Not-Track Indicator. Click for more info on web tracking."/>
</a>
</div>

<? if (true || strchr($_SERVER['HTTP_USER_AGENT'], "MSIE 9.0")) { ?>

<div class="sidebar-box">
<h3>Other<span>browsers</span></h3>
<? if ($dnt && $dntval == "1") { ?>
<p>You're using Internet Explorer 9, and your browser is sending the DNT header because you've enabled Tracking Protection! This means you're using one or more Tracking Protection Lists, and as a result, Internet Explorer is asking all sites to stop tracking you.</p>
<? } else { ?>
<p>To send the Do-not-track header in Internet Explorer 9, you need to enable tracking protection. The easiest way to do this is to install an empty tracking protection list. <a href="javascript:window.external.msAddTrackingProtectionList('dnt-enabler.tpl', 'Enables the Do-Not-Track header'); window.location.reload()">Click Here</a> to install an empty list and enable the DNT header.</p>
<? } ?>
</div>
<? } ?>
</div><!-- end sidebar -->

<div id="main-feature">
Expand Down

0 comments on commit f177ada

Please sign in to comment.