

Your blocklist will be compatible with browser ad blockers, and it will be easier to share rules with a browser filter list.Įxtensibility. Using pattern matching allows you to have a single rule instead of hundreds of /etc/hosts entries.Ĭompatibility. It has a couple of important advantages over the old-style syntax:īlocklists size. If you are creating a blocklist, we recommend using the Adblock-style syntax. etc/hosts syntax: the old, tried-and-true approach that uses the same syntax that operating systems do for their hosts files.ĭomains-only syntax: a simple list of domain names.

This way blocklists are compatible with browser ad blockers. There are three different approaches to writing hosts blocklists:Īdblock-style syntax: the modern approach to writing filtering rules based on using a subset of the Adblock-style rule syntax. You can use AdGuard DNS filtering rules syntax to make the rules more flexible, so they can block content according to your preferences.ĪdGuard DNS filtering rules syntax can be used in different AdGuard products such as AdGuard Home, AdGuard DNS, AdGuard for Windows/Mac/Android. DNS filtering rules syntax Introduction
