TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/alexperezortuno/ce-blocker/llms.txt
Use this file to discover all available pages before exploring further.
urlFilter field in a Traffic Blocker rule follows Chrome’s declarativeNetRequest URL filter syntax. Patterns are matched against the full request URL — including protocol, domain, path, and query string — and support several wildcard and anchor characters to give you fine-grained control over what gets blocked.
Pattern syntax
| Wildcard | Meaning | Example |
|---|---|---|
* | Match any number of characters | *://*.example.com/* |
| at start | Left-anchor: match URL prefix | |https://example.com |
| at end | Right-anchor: match URL suffix | .gif| |
|| | Domain anchor: match domain and all subdomains | ||example.com |
Common pattern examples
*://*/track.js will match https://cdn.any-domain.com/scripts/track.js because the * portions absorb the protocol, hostname, and any intervening path segments.
Protocol matching
The protocol prefix controls which request schemes the rule applies to:*://matches both HTTP and HTTPS requests.https://matches HTTPS requests only.http://matches HTTP requests only.
*:// is the right choice since many services serve content over both protocols or redirect between them.
Domain wildcard
The* wildcard in the domain part of a pattern behaves as follows:
*.example.commatchessub.example.com,deep.sub.example.com, and any other subdomain depth.example.com(no wildcard prefix) matches only the exact domain — subdomains are not included.
*://*.example.com/* rather than *://example.com/* unless you specifically need to target the apex domain only.
Initiator domain filtering
When you want to block a URL only when the request originates from a specific site, setinitiatorDomains on the rule’s condition. This is useful for blocking partner API calls that are specific to one application without affecting other pages that use the same endpoint.
Example: Block *://api.ads.com/* only when the request is initiated from shopping-site.com:
Excluded initiator domains
To allow requests from specific origins while still blocking them everywhere else, useexcludedInitiatorDomains. Any request initiated from a domain in this list will bypass the rule entirely, even if the URL matches the urlFilter.
Example: Block all requests to *.doubleclick.net, but never block them when the request comes from localhost: