Get rid of 5 cookies - online privacy

information flow

One of the problems with trying to comply with the EU cookie law is that most websites use media and services provided by third parties (Facebook widgets, Twitter modules, YouTube videos players etc...) and often these store cookies on a users computer and a website owner can do little about it.

information flow

As an example, if you embed a YouTube video on a page of your website, YouTube will store cookies on any computer used to view that page.

While using YouTube videos on dotComXL, I found that YouTube was storing 5 cookies on my computer:

  • VISITOR_INFO1_LIVE
  • use_hitbox
  • recently_watched_video_id_list
  • ACTIVITY
  • PREF

Shocked? I was!!

Luckily, YouTube provides a very easy way to embed videos without using cookies.

youtube privacy settings

By enabling the privacy enhanced mode as shown in the image above, YouTube will provide you with the code that you need to copy and paste into your web page. However...if you are a using content management system such as Joomla, you are probably using a plugin to help you embed YouTube videos on your pages, so it might be quite difficult to apply this privacy mode.

If you are using the Joomla Works All Videos plugin, however, you are in luck because I found out how to make a very little modification that will help protect the privacy of your website visitors!

Open:

public_html\plugins\content\jw_allvideos\jw_allvideos\includes\sources.php

jw all videos plugin file structure

 

Find on line 285:

PHP Code:
  1. "youtube" => "<iframe src="\"http:/www.youtube.com/embed/{SOURCE}\"" width="\"{WIDTH}\"" height="\"{HEIGHT}\"" frameborder="\"0\"" allowfullscreen="true" title="\"JoomlaWorks" allvideos="" player=""></iframe>",

 

Replace with

PHP Code:
  1. "youtube" => "<iframe src="\"http:/www.youtube-nocookie.com/embed/{SOURCE}\"" width="\"{WIDTH}\"" height="\"{HEIGHT}\"" frameborder="\"0\"" allowfullscreen="true" title="\"JoomlaWorks" allvideos="" player=""></iframe>",

 

More information here

 

If you liked the tutorial don't forget to like and comment.

Thank you!


Additional information