# adblock configuration, for further information
# see 'https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md'

config adblock 'global'
	option adb_enabled '1'
	option adb_debug '0'
	option adb_forcesrt '0'
	option adb_forcedns '0'
	option adb_iface 'wan'
	option adb_triggerdelay '2'
	option adb_whitelist '/etc/adblock/adblock.whitelist'
	option adb_whitelist_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\"^\"\$1\"\\\|[.]\"\$1)}'
	option adb_backup '0'
	option adb_backupdir '/mnt'
	option adb_rtfile '/tmp/adb_runtime.json'

config source 'adaway'
	option enabled '1'
	option adb_src 'https://adaway.org/hosts.txt'
	option adb_src_rset '\$0 ~/^127\.0\.0\.1[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'focus on mobile ads, infrequent updates, approx. 400 entries'

config source 'adguard'
	option enabled '0'
	option adb_src 'https://raw.githubusercontent.com/AdguardTeam/AdguardDNS/master/Filters/filter.txt'
	option adb_src_rset '{FS=\"[|^]\"} \$0 ~/^\|\|([A-Za-z0-9_-]+\.){1,}[A-Za-z]+\^$/{print tolower(\$3)}'
	option adb_src_desc 'combined adguard dns filter list, approx. 12.000 entries'

config source 'blacklist'
	option enabled '0'
	option adb_src '/etc/adblock/adblock.blacklist'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'static local domain blacklist (always deny these domains)'

config source 'disconnect'
	option enabled '1'
	option adb_src 'https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'mozilla driven blocklist, numerous updates on the same day, approx. 6.500 entries'

config source 'dshield'
	option enabled '0'
	option adb_src 'https://www.dshield.org/feeds/suspiciousdomains_Low.txt'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'generic blocklist, daily updates, approx. 4.500 entries'

config source 'feodo'
	option enabled '0'
	option adb_src 'https://feodotracker.abuse.ch/blocklist/?download=domainblocklist'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'focus on feodo botnet, daily updates, approx. 0-10 entries'

config source 'hphosts'
	option enabled '0'
	option adb_src 'https://hosts-file.net/ad_servers.txt'
	option adb_src_rset '\$0 ~/^127\.0\.0\.1[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'broad blocklist, monthly updates, approx. 50.000 entries'

config source 'malware'
	option enabled '0'
	option adb_src 'https://mirror.cedia.org.ec/malwaredomains/justdomains'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'broad blocklist, daily updates, approx. 16.000 entries'

config source 'malwarelist'
	option enabled '0'
	option adb_src 'http://www.malwaredomainlist.com/hostslist/hosts.txt'
	option adb_src_rset '\$0 ~/^127\.0\.0\.1[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'focus on malware, daily updates, approx. 1.500 entries'

config source 'openphish'
	option enabled '0'
	option adb_src 'https://openphish.com/feed.txt'
	option adb_src_rset '{FS=\"/\"} \$3 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$3)}'
	option adb_src_desc 'focus on phishing, numerous updates on the same day, approx. 1.800 entries'

config source 'palevo'
	option enabled '0'
	option adb_src 'https://palevotracker.abuse.ch/blocklists.php?download=domainblocklist'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'focus on palevo worm, daily updates, approx. 15 entries'

config source 'ransomware'
	option enabled '0'
	option adb_src 'https://ransomwaretracker.abuse.ch/downloads/RW_DOMBL.txt'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'focus on ransomware, numerous updates on the same day, approx. 130 entries'

config source 'reg_cn'
	option enabled '0'
	option adb_src 'https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt'
	option adb_src_rset '{FS=\"[|^]\"} \$0 ~/^\|\|([A-Za-z0-9_-]+\.){1,}[A-Za-z]+\^$/{print tolower(\$3)}'
	option adb_src_desc 'focus on chinese ads, daily updates, approx. 1.600 entries'

config source 'reg_pl'
	option enabled '0'
	option adb_src 'http://adblocklist.org/adblock-pxf-polish.txt'
	option adb_src_rset '{FS=\"[|^]\"} \$0 ~/^\|\|([A-Za-z0-9_-]+\.){1,}[A-Za-z]+\^$/{print tolower(\$3)}'
	option adb_src_desc 'focus on polish ads, daily updates, approx. 50 entries'

config source 'reg_ro'
	option enabled '0'
	option adb_src 'https://easylist-downloads.adblockplus.org/rolist+easylist.txt'
	option adb_src_rset '{FS=\"[|^]\"} \$0 ~/^\|\|([A-Za-z0-9_-]+\.){1,}[A-Za-z]+\^$/{print tolower(\$3)}'
	option adb_src_desc 'focus on romanian ads plus generic easylist additions, weekly updates, approx. 600 entries'

config source 'reg_ru'
	option enabled '0'
	option adb_src 'https://easylist-downloads.adblockplus.org/ruadlist+easylist.txt'
	option adb_src_rset '{FS=\"[|^]\"} \$0 ~/^\|\|([A-Za-z0-9_-]+\.){1,}[A-Za-z]+\^$/{print tolower(\$3)}'
	option adb_src_desc 'focus on russian ads plus generic easylist additions, weekly updates, approx. 2.000 entries'

config source 'securemecca'
	option enabled '0'
	option adb_src 'http://securemecca.com/Downloads/hosts.txt'
	option adb_src_rset '\$0 ~/^127\.0\.0\.1[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'broad blocklist, infrequent updates, approx. 25.000 entries'

config source 'shalla'
	option enabled '0'
	option adb_src 'http://www.shallalist.de/Downloads/shallalist.tar.gz'
	option adb_src_rset '{FS=\"/\"} \$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'broad blocklist subdivided in different categories, daily updates, approx. 32.000 entries'
	list adb_src_cat 'adv'
	list adb_src_cat 'costtraps'
	list adb_src_cat 'spyware'
	list adb_src_cat 'tracker'
	list adb_src_cat 'warez'

config source 'spam404'
	option enabled '0'
	option adb_src 'https://raw.githubusercontent.com/Dawsey21/Lists/master/main-blacklist.txt'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'generic blocklist, infrequent updates, approx. 5.000 entries'

config source 'sysctl' 
	option enabled '0'
	option adb_src 'http://sysctl.org/cameleon/hosts'
	option adb_src_rset '\$0 ~/^127\.0\.0\.1[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'broad blocklist, weekly updates, approx. 21.000 entries'

config source 'whocares'
	option enabled '0'
	option adb_src 'http://someonewhocares.org/hosts/hosts'
	option adb_src_rset '\$0 ~/^127\.0\.0\.1[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'broad blocklist, weekly updates, approx. 12.000 entries'

config source 'winspy'
	option enabled '0'
	option adb_src 'https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win10/spy.txt'
	option adb_src_rset '\$0 ~/^0\.0\.0\.0[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'focus on windows spy & telemetry, infrequent updates, approx. 140 entries'

config source 'winhelp'
	option enabled '0'
	option adb_src 'http://winhelp2002.mvps.org/hosts.txt'
	option adb_src_rset '\$0 ~/^0\.0\.0\.0[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
	option adb_src_desc 'broad blocklist, infrequent updates, approx. 15.000 entries'

config source 'yoyo'
	option enabled '1'
	option adb_src 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'focus on ad related domains, weekly updates, approx. 2.500 entries'

config source 'zeus'
	option enabled '0'
	option adb_src 'https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist'
	option adb_src_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
	option adb_src_desc 'focus on zeus botnet, daily updates, approx. 440 entries'
