Skip to content

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.

WhatStatusWhereVerdict
The modifiers $ctag, $denyallowno: the rule is skipped with a warningmodules/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 skippedrules.rs (dns_rewrite)missing
$dnsrewrite with CNAMEpartial: answers with a CNAME record without resolving the targetengine.rs (rewritten)missing
A hosts line with a non-empty addressdifferent: answers only A/AAAA of its own family; queries of the other family go to the upstreamrules.rs (hosts)missing
Safe search, parental control, Safe Browsing, blocking servicesno—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), MACno: only address/network, inbound, userengine.rs (profile)missing
Per-client listsdifferent: a subset of the blocklists (clients.<name>.lists); allowlists and own rules — alwaysengine.rs—
Checking the response (CNAME, IP)different: only the response records — CNAME targets and A/AAAA addresses; HTTPS/SVCB hints are not checkedengine.rs (answer_targets)missing
Filtering the proxy's own queriesdifferent: not filtered (only client ones through exchange)modules/dns/dns/src/router.rs— (design)
The blocking responsepartial: null_ip, nxdomain, refused, own addresses; NXDOMAIN/NODATA without SOAengine.rs (blocked)missing: SOA
Statisticsdifferent: tops per day (up to 1000 keys a day), not per hourstats.rs—
The query logdifferent: a ring in memory + JSON lines in portions, without searching the file and without the whole responsequerylog.rs—
Updating listsdifferent: without ETag/If-Modified-Since; identical content is not recompiledruntime.rs (fetch)missing: ETag
$badfilter for hosts linesdifferent: |x^$badfilter also disables 0.0.0.0 x (in AdGuard Home hosts lines are not disabled)rules.rs—
Lists from .srsbeyond the reference: domains, suffixes (.x as ||x^), AdGuard rules and regexes from a sing-box rule-setrules.rs (srs)—
Blocking connections by domainbeyond the reference: enforce_on_route after the route rulesruntime.rs (Veto)—
Turning off/pausingdifferent: pause and stop through the Admin API without writing to the config; enabled — through a draftapi.rs—

GPL-3.0-or-later