From: Michael Tremer Date: Wed, 10 Dec 2025 12:56:31 +0000 (+0000) Subject: sources: Don't rely on the Adblock Plus header X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a383dade36c3415168363a47ecb7b28ef8c0f3;p=dbl.git sources: Don't rely on the Adblock Plus header Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/sources.py b/src/dnsbl/sources.py index c6fdb96..88c99fc 100644 --- a/src/dnsbl/sources.py +++ b/src/dnsbl/sources.py @@ -262,7 +262,7 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): Called very early when we are detecting the format """ # Check for the Adblock Plus header - if line == "[Adblock Plus]": + if line == "[Adblock Plus]" or line.startswith("||"): return Format.ADBLOCKPLUS # Is this a hosts file?