English
Adblock and AdGuard Home
The adblock module repeats AdGuard Home's filtering (urlfilter), but not all of it. The columns are as in the README.
| What | Status | Where | Verdict |
|---|---|---|---|
The modifiers $ctag, $denyallow | no: the rule is skipped with a warning | modules/dns/adblock/src/rules.rs (adguard) | missing ($denyallow); $ctag — junk without client tags |
$dnsrewrite with types other than A, AAAA, CNAME (MX, TXT, HTTPS, SRV, PTR) | no: the rule is skipped | rules.rs (dns_rewrite) | missing |
$dnsrewrite with CNAME | partial: answers with a CNAME record without resolving the target | engine.rs (rewritten) | missing |
| A hosts line with a non-empty address | different: answers only A/AAAA of its own family; queries of the other family go to the upstream | rules.rs (hosts) | missing |
| Safe search, parental control, Safe Browsing, blocking services | no | — | junk: not a proxy kernel's job |
| DNS rewrites from the UI (Rewrites) | different: $dnsrewrite rules in adblock.rules | — | — |
| Clients by ClientID (the DoH path, DoT SNI), MAC | no: only address/network, inbound, user | engine.rs (profile) | missing |
| Per-client lists | different: a subset of the blocklists (clients.<name>.lists); allowlists and own rules — always | engine.rs | — |
| Checking the response (CNAME, IP) | different: only the response records — CNAME targets and A/AAAA addresses; HTTPS/SVCB hints are not checked | engine.rs (answer_targets) | missing |
| Filtering the proxy's own queries | different: not filtered (only client ones through exchange) | modules/dns/dns/src/router.rs | — (design) |
| The blocking response | partial: null_ip, nxdomain, refused, own addresses; NXDOMAIN/NODATA without SOA | engine.rs (blocked) | missing: SOA |
| Statistics | different: tops per day (up to 1000 keys a day), not per hour | stats.rs | — |
| The query log | different: a ring in memory + JSON lines in portions, without searching the file and without the whole response | querylog.rs | — |
| Updating lists | different: without ETag/If-Modified-Since; identical content is not recompiled | runtime.rs (fetch) | missing: ETag |
$badfilter for hosts lines | different: |x^$badfilter also disables 0.0.0.0 x (in AdGuard Home hosts lines are not disabled) | rules.rs | — |
Lists from .srs | beyond the reference: domains, suffixes (.x as ||x^), AdGuard rules and regexes from a sing-box rule-set | rules.rs (srs) | — |
| Blocking connections by domain | beyond the reference: enforce_on_route after the route rules | runtime.rs (Veto) | — |
| Turning off/pausing | different: pause and stop through the Admin API without writing to the config; enabled — through a draft | api.rs | — |