A simple, customizable PHP plugin to allow websites to comply with the EU 'Cookie Law'.
CookiesPlus is, as it says above, a plugin to help websites comply with the EU 'Cookie Law'. Information about this change in law, and how to comply with it can be found from the Information Commissioner's Office here.
I'm a fan of simple instructions, so here's how to install the CookiesPlus Plugin on your website:
- Download all of the files from this repository into your web root folder.
- Open CookieNotice.php in a text editor, do a Find and replace for
http://ThisSiteName/cookies/
with the URL of your Cookie Policy, replacemailto:webmaster@ThisSiteName
withmailto:
followed by your email address, and replaceThisSiteNameCookies
with the name you want to give the cookie that monitors allowing cookies on the site. - Replace any instances of the phrase
</head>
...<body>
with an instance of:
<?php include('./Header.php'); ?>
- Note: any pages saved as a
.htm
or.html
to which you have done the above will beed to be renamed as a.php
This plugin uses implied consent, as explained by the ICO to allow users to accept cookies on your site. For this to work, your website's cookie policy must state that you use your own "First-Party" cookies. This is because the plugin itself is powered by a cookie... And it's delicious.