From cb0fbf440ca271a209434f76358b251a604cf170 Mon Sep 17 00:00:00 2001 From: Gareth Owen Date: Sun, 14 Mar 2021 07:52:36 -0400 Subject: [PATCH] dnsbl: Prefer domain list over host file format (#4767) Where the blacklist provider has both host file format and a raw list of domains to block, download the raw list. The raw list will always be a smaller download and require less processing. --- .../OPNsense/Unbound/core/blacklists.conf | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/opnsense/service/templates/OPNsense/Unbound/core/blacklists.conf b/src/opnsense/service/templates/OPNsense/Unbound/core/blacklists.conf index 9354d1f26..19a258e04 100644 --- a/src/opnsense/service/templates/OPNsense/Unbound/core/blacklists.conf +++ b/src/opnsense/service/templates/OPNsense/Unbound/core/blacklists.conf @@ -2,24 +2,24 @@ set predefined = { "aa": "https://adaway.org/hosts.txt", "ag": "https://justdomains.github.io/blocklists/lists/adguarddns-justdomains.txt", - "bla0": "https://blocklistproject.github.io/Lists/abuse.txt", - "bla": "https://blocklistproject.github.io/Lists/ads.txt", - "blc": "https://blocklistproject.github.io/Lists/crypto.txt", - "bld": "https://blocklistproject.github.io/Lists/drugs.txt", - "blf0": "https://blocklistproject.github.io/Lists/facebook.txt", - "blf": "https://blocklistproject.github.io/Lists/fraud.txt", - "blg": "https://blocklistproject.github.io/Lists/gambling.txt", - "blm": "https://blocklistproject.github.io/Lists/malware.txt", - "blp": "https://blocklistproject.github.io/Lists/phishing.txt", - "blp0": "https://blocklistproject.github.io/Lists/piracy.txt", - "blp1": "https://blocklistproject.github.io/Lists/porn.txt", - "blr": "https://blocklistproject.github.io/Lists/ransomware.txt", - "blr0": "https://blocklistproject.github.io/Lists/redirect.txt", - "bls": "https://blocklistproject.github.io/Lists/scam.txt", - "blt": "https://blocklistproject.github.io/Lists/tiktok.txt", - "blt0": "https://blocklistproject.github.io/Lists/torrent.txt", - "blt1": "https://blocklistproject.github.io/Lists/tracking.txt", - "bly": "https://blocklistproject.github.io/Lists/youtube.txt", + "bla0": "https://blocklistproject.github.io/Lists/alt-version/abuse-nl.txt", + "bla": "https://blocklistproject.github.io/Lists/alt-version/ads-nl.txt", + "blc": "https://blocklistproject.github.io/Lists/alt-version/crypto-nl.txt", + "bld": "https://blocklistproject.github.io/Lists/alt-version/drugs-nl.txt", + "blf0": "https://blocklistproject.github.io/Lists/alt-version/facebook-nl.txt", + "blf": "https://blocklistproject.github.io/Lists/alt-version/fraud-nl.txt", + "blg": "https://blocklistproject.github.io/Lists/alt-version/gambling-nl.txt", + "blm": "https://blocklistproject.github.io/Lists/alt-version/malware-nl.txt", + "blp": "https://blocklistproject.github.io/Lists/alt-version/phishing-nl.txt", + "blp0": "https://blocklistproject.github.io/Lists/alt-version/piracy-nl.txt", + "blp1": "https://blocklistproject.github.io/Lists/alt-version/porn-nl.txt", + "blr": "https://blocklistproject.github.io/Lists/alt-version/ransomware-nl.txt", + "blr0": "https://blocklistproject.github.io/Lists/alt-version/redirect-nl.txt", + "bls": "https://blocklistproject.github.io/Lists/alt-version/scam-nl.txt", + "blt": "https://blocklistproject.github.io/Lists/alt-version/tiktok-nl.txt", + "blt0": "https://blocklistproject.github.io/Lists/alt-version/torrent-nl.txt", + "blt1": "https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt", + "bly": "https://blocklistproject.github.io/Lists/alt-version/youtube-nl.txt", "el": "https://justdomains.github.io/blocklists/lists/easylist-justdomains.txt", "ep": "https://justdomains.github.io/blocklists/lists/easyprivacy-justdomains.txt", "nc": "https://justdomains.github.io/blocklists/lists/nocoin-justdomains.txt", @@ -31,7 +31,7 @@ "ws": "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt", "wsu": "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update.txt", "wse": "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/extra.txt", - "yy": "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext" + "yy": "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&mimetype=plaintext" } %} {% if not helpers.empty('OPNsense.unboundplus.dnsbl.enabled') %}