Google-chrome – Google Chrome’s block/allow pattern syntax

blacklistblockingbrowsercookiesgoogle-chrome

I'm looking for documentation describing Google Chrome's glob/wildcard/pattern syntax used in block/allow lists for content settings.

If you're using Chrome, these settings pages are accessible via urls like:

chrome://settings/content/javascript

chrome://settings/content/cookies

There are several other pages that use the same url matching syntax. When you click "Add", the form displays the example text, [*.]example.com. The square brackets appear to be necessary when using the wildcard pattern, as omitting them results in the message, Not a valid web address.

Official documentation or source code would be nice, but a plain old BNF is ideal.

I have found two related pages that describe url pattern matching in Chrome, but neither of them apply to this case. Please don't reference them unless it turns out that I've misunderstood their relevance (neither document the required square brackets):

  1. https://www.chromium.org/administrators/url-blacklist-filter-format

  2. https://developer.chrome.com/apps/match_patterns

Best Answer

I initially had the same behavior but [*.]example.com is the correct syntax and it works, after i have copy and paste the adress from HERE

Now i can use every url, maybe it's a bug.