adaway focus on mobile ads, infrequent updates, approx. 400 entries adguard combined adguard dns filter list, frequent updates, approx. 17.000 entries bitcoin focus on malicious bitcoin mining sites, infrequent updates, approx. 80 entries custom blacklist static local domain blacklist, always deny these domains disconnect mozilla driven blocklist, numerous updates on the same day, approx. 4.700 entries dshield generic blocklist, daily updates, approx. 3.500 entries feodo focus on feodo botnet, daily updates, approx. 0-10 entries hphosts-adservers broad blocklist with ad/tracking servers, monthly updates, approx. 19.200 entries hphosts-exploit sites broad blocklist with exploit sites, irregular updates, approx. 1.100 entries hphosts-fraud sites broad blocklist with fraud sites, monthly updates, approx. 183.300 entries hphosts-hijack sites blocklist with hijack sites, irregular updates, approx. 250 entries hphosts-malwareservers broad blocklist with malware sites, monthly updates, approx. 199.000 entries hphosts-phishing sites broad blocklist with phishing sites, monthly updates, approx. 150.000 entries hphosts-warez/piracy sites broad blocklist with warez/piracy sites, monthly updates, approx. 2.100 entries malware broad blocklist, daily updates, approx. 18.300 entries malwarelist focus on malware, daily updates, approx. 1.200 entries openphish focus on phishing, numerous updates on the same day, approx. 2.400 entries ransomware focus on ransomware by abuse.ch, numerous updates on the same day, approx. 1900 entries reg_cn focus on chinese ads plus generic easylist additions, daily updates, approx. 11.700 entries reg_cz focus on czech ads maintained by Turris Omnia Users, infrequent updates, approx. 100 entries reg_de focus on german ads plus generic easylist additions, daily updates, approx. 9.200 entries reg_id focus on indonesian ads plus generic easylist additions, weekly updates, approx. 9.600 entries reg_nl focus on dutch ads plus generic easylist additions, weekly updates, approx. 9.400 entries reg_pl focus on polish ads, daily updates, approx. 90 entries reg_ro focus on romanian ads plus generic easylist additions, weekly updates, approx. 9.400 entries reg_ru focus on russian ads plus generic easylist additions, weekly updates, approx. 14.500 entries shalla huge blocklist archive subdivided in different categories, daily updates. Check http://www.shallalist.de/categories.html for more categories spam404 generic blocklist, infrequent updates, approx. 6.000 entries sysctl broad blocklist, weekly updates, approx. 16.500 entries urlhaus urlhaus RPZ domains by abuse.ch, numerous updates on the same day, approx. 3.500 entries ut_capitole huge blocklist archive subdivided in different categories, daily updates. Check https://dsi.ut-capitole.fr/blacklists/index_en.php for more categories whocares broad blocklist, weekly updates, approx. 10.000 entries winhelp broad blocklist, infrequent updates, approx. 13.000 entries winspy focus on windows spy & telemetry domains, infrequent updates, approx. 300 entries youtube focus on youtube ad-related subdomains, dynamic request API, approx. 150 entries yoyo focus on ad related domains, weekly updates, approx. 2.400 entries zeus focus on zeus botnet by abuse.ch, daily updates, approx. 400 entries
readonly unbound_path="$config_path"'unbound/'readonly unbound_nxd_block_file='blacklist-unb-nxd.conf'readonly unbound_nxd_string='BEGIN{print "server:"}{printf "local-zone: \"%s\" static\n", $1}'
# Converting to unbound formatawk "$unbound_ip_string" "$tmp_path$tmp_file_1" > "$unbound_path$unbound_ip_block_file"awk "$unbound_nxd_string" "$tmp_path$tmp_file_1" > "$unbound_path$unbound_nxd_block_file"echo "$unbound_path$unbound_ip_block_file has "$( wc -l "$unbound_path$unbound_ip_block_file" | awk '{ print $1 }' )" lines"echo "$unbound_path$unbound_nxd_block_file has "$( wc -l "$unbound_path$unbound_nxd_block_file" | awk '{ print $1 }' )" lines"
## Clean up any stale tempfileecho "Removing old files..."
readonly unbound_ip_string='BEGIN{print "server:"}{printf "local-data: \"%s A 0.0.0.0\"\n", $1}' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.