Google Chrome does not honor Cookie Blocking for

UPDATE: Chrome will correctly block youtube (and other cookies). Thanks to Mike West at Google for taking the time to leave a comment outlining the fix. The crux of the issue is that a literal pattern like I was using ( ) will only match the literal domain “”. To match all sub-domains, you need to use a wildcard, although the syntax is non-obvious (to me). The correct pattern is [*.] Interestingly, if you try to use *, the field turns red and you cannot save the pattern, which is what led me to try I have also updated my article on HOWTO prevent youtube from tracking your gmail-credentials.

Here’s the original post:

A few (wow, 10?) months ago, I posted instructions for preventing youtube from tracking your gmail credentials, which amounts to blocking youtube from setting cookies in your browser, and removing any existing youtube cookies. However, I’ve noticed that every so often, youtube once again identifies me by my GMail account, and I have to clear the cookies again, even though I am still blocking all cookies matching “”.

I finally decided to investigate, and it appears that Chrome is not honoring my blocked cookies settings at all. Clear all cookies prevents youtube from identifying my GMail account, until I click on a youtube link in an email in GMail, and then the cookie is set and I’m identified until I clear it (don’t log out of youtube, you will be logged out of GMail too). For reference, my Chrome version is currently 20.0.1132.57, and is “Up to date” as of this writing, but I have been having this issue for some time.

Steps to reproduce:

  1. Close any open windows/tabs for
  2. Open Settings, Advanced Settings; under Privacy click “Content Settings…”
  3. Click “Content Settings…”
  4. Under Cookies make sure the “allow local data to be set (recommended)” is selected.
  5. Click “Manage exceptions…”
  6. in the box “Add a new hostname pattern”, enter “” (without quotes); set the behavior dropdown to “block”, and click ok.
  7. You are returned to the Content Settings dialog; click “All cookies and site data…”
  8. in the “Search Cookies” box (top right), type “youtube” (no quotes).
  9. If the list contains any cookies, click “Remove all”.
  10. Close the cookie dialog, content settings dialog, and the settings tab.
  11. Navigate to
  12. Return to settings, advanced settings, content settings, All cookies and site data
  13. Search again for “youtube” (no quotes). You will see cookies from youtube. If you return to youtube and watch some videos, and then search again, you will have more cookies, plus “local storage”.

Just because youtube is a google property is no reason for Chrome to not honor my cookie settings. I don’t know if that is the case; I don’t know if Chrome ignores all cookie blocking settings, but this is a case I discovered and can reproduce. I submitted a bug report (essentially the same as this post) via Chrome’s “report an issue” feature. We’ll see if it gets addressed; I’ll post an update if I hear directly from Google.

Both comments and pings are currently closed.

2 Responses to “Google Chrome does not honor Cookie Blocking for”

  1. Yeager Says:


  2. Mike West Says:

    I suspect you need to enter a URL pattern (e.g. [*.], as suggested at

    That said, if you’ll email me the bug ID ( I’ll make sure it lands in front of the right folks.