Thank you for your kind words. So often feedback on any development work relates to desired features or problems, and so positive feedback is especially appreciated.
The original idea that germinated into adblock-lean came from @Wizballs - see this thread - and his observation about the new dnsmasq blocklist functionality. So it seemed apt to put together a simple service script to leverage this functionality using the existing tools on an OpenWrt installation and without requiring any dependencies. With time the feature set of adblock-lean has grown. Design goals have included: use of /tmp exclusively to avoid any flash memory wear; efficient sanitization and checking of blocklist entries; keeping memory footprint low; falling back to previous known good blocklists on any serious problems cropping up such as rogue elements in the lists or loss of connectivity to major domains; and a 'set and forget' approach in which the blocklists are automatically updated every night.
That seems funky. So you:
-
block access to all the DNS (DoT/DoH) services here: https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/dnsmasq/doh.txt
-
add your server of choice in the 'allowlist' to exclude that block (e.g. a family filter like cleanbrowsing.org)
-
hijack/block all outgoing requests over port 53 or 853
Am I understanding this correctly? Will you also block adverts too?
I'd be grateful if you could test the latest code in the improve-adblock-lean branch. There have been many changes and some testing would be great.
@Wizballs I have also switched to a minimum line count for blocklist file parts rather than minimum size. This makes more sense in my mind, especially given that many of the small blocklists just have say 5 or 10 lines.
So now we have:
# Mininum number of lines of any individual downloaded blocklist part
min_blocklist_file_part_line_count=1
# Maximum size of any individual downloaded blocklist part
max_blocklist_file_part_size_KB=20000
# Maximum total size of combined, processed blocklist
max_blocklist_file_size_KB=30000
# Minimum number of good lines in final postprocessed blocklist
min_good_line_count=100000
Make sense?