And a feature request: it would be nice to have separate checkboxes to block iframes and scripts.
I only want to block iframes.
When scripts are blocked, also the Google Analytics is blocked. This is not necessary because I don’t need permission for that (I use anonymize).
@milmor I see there is a plugin update that didn’t include the fix I mentioned above. So now my website is not GDPR compliant anymore. Because video embeds are shown before cookies are accepted. Can you please include the code change above so my website stays GDPR comliant with the next update?
Thanks!
Wouter
Releasing 2.13 right now 🙂
@milmor Thanks!
The only thing that is missing to be GDPR compliant is the differentiation between iframes and scripts.
This is my solution for now:
$content = preg_replace('#<iframe.*?\/iframe>|<object.*?\/object>|<embed.*?>#is', generate_cookie_notice('auto', '100%'), $content);
// $content = preg_replace('#<script.(?:(?!eucookielaw_exclude).)*?\/script>#is', '', $content);
// $content = preg_replace('#<!cookie_start.*?\!cookie_end>#is', generate_cookie_notice('auto', '100%'), $content);
// $content = preg_replace('#<div id=\"disqus_thread\".*?\/div>#is', generate_cookie_notice('auto', '100%'), $content);
But I have to apply this fix every time you update the plugin.
So it would be nice to have 4 different options:
- block iframes
- block scripts
- block cookies
- block disqus
Wouter
Hello!
I use Eu Cookie Law plugin. I’ve wrapped all scripts (adsense, facebook widget, youtube etc) on my website with the shortcode [cookie]…[/cookie].
In this way every third party cookies are blocked.
If the user accept the cookies they will see the website with all these scripts if they don’t accept they will see the website with the grey Eu Cookie Law little banner that says “Click accept if you want to see more”.
So, in this case there are no cookies installed on the browser of the users. They can see the content of the website and navigate, but they will not see the youtube video etc…
1) If they don’t accept cookies
In this way I don’t need to record their consent and they can however see the website.
2) They accept cookies
If they accept, the consent is stored on the EuCookie on their browser.
Do you think that this approach could be legal, with the new GDPR regulation?
Thank you very much
How do you add the shortcode? What exactly needs to be written in-between the [cookie]…[/cookie] brackets? I need to do amazon, youtube and google analytics. I can’t just use Auto Block because then my slider doesn’t work.