-
Notifications
You must be signed in to change notification settings - Fork 74
Brave Adblock References: Syntax & Examples
Below is a summary of the most important rules. See https://adblockplus.org/filters for more information on this ruleset syntax and this wiki page for what is supported in Brave.
-
Prefix with
@@
for exceptions - Use
||
for host anchored filters - Use
@@||
to allow a list with a host anchored filter -
Append
$domain=domainname.com
to the end of a rule to apply that rule to a specific domain. - Append
^$third-party
to rules that apply to third parties. example:||thirdpartydomainexample.com^$third-party
- Prefix notations with
!
within a line break between rules, to describe the purpose for the next rule in the list. example:! This rule applies for this thing which deserves notation
This would be used to make an exception in order to get a piece of content to work.
Typically used a last resort option
example: @@||tags.difficultvendorexample.com/folderexample/*/difficultfileexample.js$domain=difficultpubdomainexample.com
This would be used to block a network request in order to get a piece of content to work.
Typically used for sites that use an anti-ad blocker that would obstruct content when ad blocking is detected.
example:
||antiadblockingresourcehostexample.com/antiadblockingfileexample.js$domain=publisherdomainexample.com
This would be used to block a third network request for an ad server, vendor, etc.
Example:
||thirdpartydomain.com^$third-party