adblock: limit domain name length

* limit domain name length to max. 63 chars
  to fix issues with energized sources

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2020-05-24 21:40:58 +02:00
parent 38be46a7ae
commit 0b6ea12560
No known key found for this signature in database
GPG Key ID: 9D71CD547BFAE684
3 changed files with 49 additions and 49 deletions

View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=adblock PKG_NAME:=adblock
PKG_VERSION:=4.0.5 PKG_VERSION:=4.0.5
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>

View File

@ -677,7 +677,7 @@ f_list()
src_name="${mode}" src_name="${mode}"
if [ "${src_name}" = "blacklist" ] && [ -s "${adb_blacklist}" ] if [ "${src_name}" = "blacklist" ] && [ -s "${adb_blacklist}" ]
then then
rset="/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}" rset="/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}"
"${adb_awk}" "${rset}" "${adb_blacklist}" | \ "${adb_awk}" "${rset}" "${adb_blacklist}" | \
"${adb_awk}" 'BEGIN{FS="."}{for(f=NF;f>1;f--)printf "%s.",$f;print $1}' > "${adb_tmpdir}/tmp.raw.${src_name}" "${adb_awk}" 'BEGIN{FS="."}{for(f=NF;f>1;f--)printf "%s.",$f;print $1}' > "${adb_tmpdir}/tmp.raw.${src_name}"
sort ${adb_srtopts} -u "${adb_tmpdir}/tmp.raw.${src_name}" 2>/dev/null > "${adb_tmpfile}.${src_name}" sort ${adb_srtopts} -u "${adb_tmpdir}/tmp.raw.${src_name}" 2>/dev/null > "${adb_tmpfile}.${src_name}"
@ -685,12 +685,12 @@ f_list()
rm -f "${adb_tmpdir}/tmp.raw.${src_name}" rm -f "${adb_tmpdir}/tmp.raw.${src_name}"
elif [ "${src_name}" = "whitelist" ] && [ -s "${adb_whitelist}" ] elif [ "${src_name}" = "whitelist" ] && [ -s "${adb_whitelist}" ]
then then
rset="/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}" rset="/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}"
"${adb_awk}" "${rset}" "${adb_whitelist}" > "${adb_tmpdir}/tmp.raw.${src_name}" "${adb_awk}" "${rset}" "${adb_whitelist}" > "${adb_tmpdir}/tmp.raw.${src_name}"
out_rc="${?}" out_rc="${?}"
if [ "${out_rc}" -eq 0 ] if [ "${out_rc}" -eq 0 ]
then then
rset="/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{gsub(\"\\\\.\",\"\\\\.\",\$1);print tolower(\"^(|.*\\\\.)\"\$1\"$\")}" rset="/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{gsub(\"\\\\.\",\"\\\\.\",\$1);print tolower(\"^(|.*\\\\.)\"\$1\"$\")}"
"${adb_awk}" "${rset}" "${adb_tmpdir}/tmp.raw.${src_name}" > "${adb_tmpdir}/tmp.rem.${src_name}" "${adb_awk}" "${rset}" "${adb_tmpdir}/tmp.raw.${src_name}" > "${adb_tmpdir}/tmp.rem.${src_name}"
out_rc="${?}" out_rc="${?}"
if [ "${out_rc}" -eq 0 ] && [ "${adb_dnsallow}" != "1" ] if [ "${out_rc}" -eq 0 ] && [ "${adb_dnsallow}" != "1" ]
@ -714,7 +714,7 @@ f_list()
"safesearch") "safesearch")
case "${src_name}" in case "${src_name}" in
"google") "google")
rset="/^(\\.[[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{printf \"%s\n%s\n\",tolower(\"www\"\$1),tolower(substr(\$1,2,length(\$1)))}" rset="/^(\\.[[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{printf \"%s\n%s\n\",tolower(\"www\"\$1),tolower(substr(\$1,2,length(\$1)))}"
safe_url="https://www.google.com/supported_domains" safe_url="https://www.google.com/supported_domains"
safe_ips="216.239.38.120 2001:4860:4802:32::78" safe_ips="216.239.38.120 2001:4860:4802:32::78"
safe_cname="forcesafesearch.google.com" safe_cname="forcesafesearch.google.com"

View File

@ -1,203 +1,203 @@
{ {
"adaway": { "adaway": {
"url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt", "url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt",
"rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "mobile", "focus": "mobile",
"descurl": "https://github.com/AdAway/adaway.github.io" "descurl": "https://github.com/AdAway/adaway.github.io"
}, },
"adguard": { "adguard": {
"url": "https://filters.adtidy.org/windows/filters/15.txt", "url": "https://filters.adtidy.org/windows/filters/15.txt",
"rule": "BEGIN{FS=\"[\/|^|\\r]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+[\\/\\^\\r]+$/{print tolower($3)}", "rule": "BEGIN{FS=\"[\/|^|\\r]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+[\\/\\^\\r]+$/{print tolower($3)}",
"size": "L", "size": "L",
"focus": "general", "focus": "general",
"descurl": "https://adguard.com" "descurl": "https://adguard.com"
}, },
"andryou": { "andryou": {
"url": "https://gitlab.com/andryou/block/raw/master/kouhai-compressed-domains", "url": "https://gitlab.com/andryou/block/raw/master/kouhai-compressed-domains",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "L", "size": "L",
"focus": "compilation", "focus": "compilation",
"descurl": "https://gitlab.com/andryou/block/-/blob/master/readme.md" "descurl": "https://gitlab.com/andryou/block/-/blob/master/readme.md"
}, },
"anudeep": { "anudeep": {
"url": "https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt", "url": "https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "M", "size": "M",
"focus": "compilation", "focus": "compilation",
"descurl": "https://github.com/anudeepND/blacklist" "descurl": "https://github.com/anudeepND/blacklist"
}, },
"bitcoin": { "bitcoin": {
"url": "https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt", "url": "https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "mining", "focus": "mining",
"descurl": "https://github.com/hoshsadiq/adblock-nocoin-list" "descurl": "https://github.com/hoshsadiq/adblock-nocoin-list"
}, },
"disconnect": { "disconnect": {
"url": "https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt", "url": "https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "general", "focus": "general",
"descurl": "https://disconnect.me" "descurl": "https://disconnect.me"
}, },
"dshield": { "dshield": {
"url": "https://www.dshield.org/feeds/suspiciousdomains_Low.txt", "url": "https://www.dshield.org/feeds/suspiciousdomains_Low.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XL", "size": "XL",
"focus": "general", "focus": "general",
"descurl": "https://www.dshield.org" "descurl": "https://www.dshield.org"
}, },
"energized_blugo": { "energized_blugo": {
"url": "https://block.energized.pro/bluGo/formats/domains.txt", "url": "https://block.energized.pro/bluGo/formats/domains.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XL", "size": "XL",
"focus": "compilation", "focus": "compilation",
"descurl": "https://energized.pro" "descurl": "https://energized.pro"
}, },
"energized_blu": { "energized_blu": {
"url": "https://block.energized.pro/blu/formats/domains.txt", "url": "https://block.energized.pro/blu/formats/domains.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XL", "size": "XL",
"focus": "compilation", "focus": "compilation",
"descurl": "https://energized.pro" "descurl": "https://energized.pro"
}, },
"energized_porn": { "energized_porn": {
"url": "https://block.energized.pro/porn/formats/domains.txt", "url": "https://block.energized.pro/porn/formats/domains.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XXL", "size": "XXL",
"focus": "compilation+porn", "focus": "compilation+porn",
"descurl": "https://energized.pro" "descurl": "https://energized.pro"
}, },
"energized_ultimate": { "energized_ultimate": {
"url": "https://block.energized.pro/ultimate/formats/domains.txt", "url": "https://block.energized.pro/ultimate/formats/domains.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XXL", "size": "XXL",
"focus": "compilation", "focus": "compilation",
"descurl": "https://energized.pro" "descurl": "https://energized.pro"
}, },
"energized_unified": { "energized_unified": {
"url": "https://block.energized.pro/unified/formats/domains.txt", "url": "https://block.energized.pro/unified/formats/domains.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XXL", "size": "XXL",
"focus": "compilation", "focus": "compilation",
"descurl": "https://energized.pro" "descurl": "https://energized.pro"
}, },
"malwaredomains": { "malwaredomains": {
"url": "http://mirror.espoch.edu.ec/malwaredomains/justdomains", "url": "http://mirror.espoch.edu.ec/malwaredomains/justdomains",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "M", "size": "M",
"focus": "malware", "focus": "malware",
"descurl": "https://www.malwaredomains.com" "descurl": "https://www.malwaredomains.com"
}, },
"malwarelist": { "malwarelist": {
"url": "https://www.malwaredomainlist.com/hostslist/hosts.txt", "url": "https://www.malwaredomainlist.com/hostslist/hosts.txt",
"rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "malware", "focus": "malware",
"descurl": "https://www.malwaredomainlist.com" "descurl": "https://www.malwaredomainlist.com"
}, },
"notracking": { "notracking": {
"url": "https://raw.githubusercontent.com/notracking/hosts-blocklists/master/dnscrypt-proxy/dnscrypt-proxy.blacklist.txt", "url": "https://raw.githubusercontent.com/notracking/hosts-blocklists/master/dnscrypt-proxy/dnscrypt-proxy.blacklist.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XL", "size": "XL",
"focus": "tracking", "focus": "tracking",
"descurl": "https://github.com/notracking/hosts-blocklists" "descurl": "https://github.com/notracking/hosts-blocklists"
}, },
"oisd_nl": { "oisd_nl": {
"url": "https://dbl.oisd.nl", "url": "https://dbl.oisd.nl",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "XXL", "size": "XXL",
"focus": "general", "focus": "general",
"descurl": "https://oisd.nl" "descurl": "https://oisd.nl"
}, },
"openphish": { "openphish": {
"url": "https://openphish.com/feed.txt", "url": "https://openphish.com/feed.txt",
"rule": "BEGIN{FS=\"\/\"}/^http[s]?:\\/\\/([[:alnum:]_-]+\\.)+[[:alpha:]]+(\\/|$)/{print tolower($3)}", "rule": "BEGIN{FS=\"\/\"}/^http[s]?:\\/\\/([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+(\\/|$)/{print tolower($3)}",
"size": "S", "size": "S",
"focus": "phishing", "focus": "phishing",
"descurl": "https://openphish.com" "descurl": "https://openphish.com"
}, },
"phishing_army": { "phishing_army": {
"url": "https://phishing.army/download/phishing_army_blocklist_extended.txt", "url": "https://phishing.army/download/phishing_army_blocklist_extended.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "phishing", "focus": "phishing",
"descurl": "https://phishing.army" "descurl": "https://phishing.army"
}, },
"reg_cn": { "reg_cn": {
"url": "https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_china", "focus": "reg_china",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_de": { "reg_de": {
"url": "https://easylist-downloads.adblockplus.org/easylistgermany+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/easylistgermany+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_germany", "focus": "reg_germany",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_es": { "reg_es": {
"url": "https://easylist-downloads.adblockplus.org/easylistspanish+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/easylistspanish+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_spain", "focus": "reg_spain",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_fi": { "reg_fi": {
"url": "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/master/Finland_adb.txt", "url": "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/master/Finland_adb.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "S", "size": "S",
"focus": "reg_finland", "focus": "reg_finland",
"descurl": "https://github.com/finnish-easylist-addition" "descurl": "https://github.com/finnish-easylist-addition"
}, },
"reg_id": { "reg_id": {
"url": "https://easylist-downloads.adblockplus.org/abpindo+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/abpindo+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_indonesia", "focus": "reg_indonesia",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_nl": { "reg_nl": {
"url": "https://easylist-downloads.adblockplus.org/easylistdutch+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/easylistdutch+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_netherlands", "focus": "reg_netherlands",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_pl": { "reg_pl": {
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt", "url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "reg_poland", "focus": "reg_poland",
"descurl": "https://kadantiscam.netlify.com" "descurl": "https://kadantiscam.netlify.com"
}, },
"reg_ro": { "reg_ro": {
"url": "https://easylist-downloads.adblockplus.org/rolist+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/rolist+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_romania", "focus": "reg_romania",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_ru": { "reg_ru": {
"url": "https://easylist-downloads.adblockplus.org/ruadlist+easylist.txt", "url": "https://easylist-downloads.adblockplus.org/ruadlist+easylist.txt",
"rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]+\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}", "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
"size": "M", "size": "M",
"focus": "reg_russia", "focus": "reg_russia",
"descurl": "https://easylist.to" "descurl": "https://easylist.to"
}, },
"reg_vn": { "reg_vn": {
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts", "url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "reg_vietnam", "focus": "reg_vietnam",
"descurl": "https://bigdargon.github.io/hostsVN" "descurl": "https://bigdargon.github.io/hostsVN"
}, },
"shallalist": { "shallalist": {
"url": "http://www.shallalist.de/Downloads/shallalist.tar.gz", "url": "http://www.shallalist.de/Downloads/shallalist.tar.gz",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"categories": [ "categories": [
"adv", "costtraps", "spyware", "tracker", "warez" "adv", "costtraps", "spyware", "tracker", "warez"
], ],
@ -207,7 +207,7 @@
}, },
"shallalist_porn": { "shallalist_porn": {
"url": "http://www.shallalist.de/Downloads/shallalist.tar.gz", "url": "http://www.shallalist.de/Downloads/shallalist.tar.gz",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"categories": [ "categories": [
"adv", "costtraps", "porn", "spyware", "tracker", "warez" "adv", "costtraps", "porn", "spyware", "tracker", "warez"
], ],
@ -217,49 +217,49 @@
}, },
"smarttv": { "smarttv": {
"url": "https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt", "url": "https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "smarttv", "focus": "smarttv",
"descurl": "https://github.com/Perflyst/PiHoleBlocklist" "descurl": "https://github.com/Perflyst/PiHoleBlocklist"
}, },
"spam404": { "spam404": {
"url": "https://raw.githubusercontent.com/Dawsey21/Lists/master/main-blacklist.txt", "url": "https://raw.githubusercontent.com/Dawsey21/Lists/master/main-blacklist.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "general", "focus": "general",
"descurl": "https://github.com/Dawsey21" "descurl": "https://github.com/Dawsey21"
}, },
"stevenblack": { "stevenblack": {
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts", "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "L", "size": "L",
"focus": "compilation", "focus": "compilation",
"descurl": "https://github.com/StevenBlack/hosts" "descurl": "https://github.com/StevenBlack/hosts"
}, },
"stevenblack_porn": { "stevenblack_porn": {
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts", "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "L", "size": "L",
"focus": "compilation", "focus": "compilation",
"descurl": "https://github.com/StevenBlack/hosts" "descurl": "https://github.com/StevenBlack/hosts"
}, },
"stopforumspam": { "stopforumspam": {
"url": "https://www.stopforumspam.com/downloads/toxic_domains_whole.txt", "url": "https://www.stopforumspam.com/downloads/toxic_domains_whole.txt",
"rule": "/^[[:space:]]*([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^[[:space:]]*([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "spam", "focus": "spam",
"descurl": "https://www.stopforumspam.com" "descurl": "https://www.stopforumspam.com"
}, },
"sysctl": { "sysctl": {
"url": "http://sysctl.org/cameleon/hosts", "url": "http://sysctl.org/cameleon/hosts",
"rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "M", "size": "M",
"focus": "general", "focus": "general",
"descurl": "http://sysctl.org/cameleon" "descurl": "http://sysctl.org/cameleon"
}, },
"utcapitole": { "utcapitole": {
"url": "https://dsi.ut-capitole.fr/blacklists/download/blacklists.tar.gz", "url": "https://dsi.ut-capitole.fr/blacklists/download/blacklists.tar.gz",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"categories": [ "categories": [
"publicite", "bitcoin", "cryptojacking", "ddos", "malware", "phishing", "warez" "publicite", "bitcoin", "cryptojacking", "ddos", "malware", "phishing", "warez"
], ],
@ -269,7 +269,7 @@
}, },
"utcapitole_porn": { "utcapitole_porn": {
"url": "https://dsi.ut-capitole.fr/blacklists/download/blacklists.tar.gz", "url": "https://dsi.ut-capitole.fr/blacklists/download/blacklists.tar.gz",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"categories": [ "categories": [
"adult", "publicite", "bitcoin", "cryptojacking", "ddos", "malware", "phishing", "warez" "adult", "publicite", "bitcoin", "cryptojacking", "ddos", "malware", "phishing", "warez"
], ],
@ -279,42 +279,42 @@
}, },
"wally3k": { "wally3k": {
"url": "https://v.firebog.net/hosts/static/w3kbl.txt", "url": "https://v.firebog.net/hosts/static/w3kbl.txt",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "compilation", "focus": "compilation",
"descurl": "https://firebog.net/about" "descurl": "https://firebog.net/about"
}, },
"whocares": { "whocares": {
"url": "https://someonewhocares.org/hosts/hosts", "url": "https://someonewhocares.org/hosts/hosts",
"rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "M", "size": "M",
"focus": "general", "focus": "general",
"descurl": "https://someonewhocares.org" "descurl": "https://someonewhocares.org"
}, },
"winhelp": { "winhelp": {
"url": "http://winhelp2002.mvps.org/hosts.txt", "url": "http://winhelp2002.mvps.org/hosts.txt",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "general", "focus": "general",
"descurl": "http://winhelp2002.mvps.org" "descurl": "http://winhelp2002.mvps.org"
}, },
"winspy": { "winspy": {
"url": "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt", "url": "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt",
"rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}", "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
"size": "S", "size": "S",
"focus": "win_telemetry", "focus": "win_telemetry",
"descurl": "https://github.com/crazy-max/WindowsSpyBlocker" "descurl": "https://github.com/crazy-max/WindowsSpyBlocker"
}, },
"youtube": { "youtube": {
"url": "https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/black.list", "url": "https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/black.list",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "M", "size": "M",
"focus": "youtube", "focus": "youtube",
"descurl": "https://github.com/kboghdady/youTube_ads_4_pi-hole" "descurl": "https://github.com/kboghdady/youTube_ads_4_pi-hole"
}, },
"yoyo": { "yoyo": {
"url": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext", "url": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext",
"rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}", "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
"size": "S", "size": "S",
"focus": "general", "focus": "general",
"descurl": "https://pgl.yoyo.org" "descurl": "https://pgl.yoyo.org"