To enforce it for server scripts, add the following to an .htaccess file in your home directory:
Code:
SetEnvIf Cookie "eu-opt-in=1" opted_in
Header always unset Set-Cookie env=!opted_in
To enforce it for client scripts (javascript), modify your code from (example):
Code:
document.cookie = mycookiestring;
To:
if(HI.optInCookies.allowed()) document.cookie = mycookiestring;
Please note that this will require
http://www.heartinternet.co.uk/eu-co...port-opt-in.js to be loaded on each page.
To change Google to an explanatory page, privacy policy or another URL, use the following code:
Code:
<script type='text/javascript'> HI.optInCookies.disagreeURL = "/some-page-on-my-site"; </script>
To change the text of the ?No? option:
Code:
<script type='text/javascript'> HI.optInCookies.l10n.disagreeCaption = "No thanks, see privacy policy"; </script>