Re:The NSA and CIA use ad blockers
by floren on Thursday September 23, 2021 @12:48PM
(#28631716)
I already run my own DNS server; is there some way to fetch the pihole DNS blacklist so I can use it myself? A brief look at their github account didn't turn up anything that looked obviously like "this is the blacklist repo".
[ Parent
| on HN ]
Re:The NSA and CIA use ad blockers
by kube-system on Thursday September 23, 2021 @01:09PM
(#28632027)
Pihole just includes some well known lists.. and what they've included by default has changed over time.
I think it's currently this:
https://raw.githubusercontent.com/StevenBlack/hosts/master/h...
"I already run my own DNS server ..."
I run my own resolver (unbound) that I point all of my networks/devices to.
That resolver has, as its upstream, my nextdns.io account address. nextdns has the pihole/ublock lists built-in.
So you get to run your own DNS server, you don't have to implement any of the blocking yourself, and you just point your upstream to the address you get when you sign up.
I'm quite happy with this setup ...
It used to be easy to do this, I used to download the list to my Ubiquiti router and massage it slightly to work with dnsmasq. More recent releases of pihole include regular expressions as part of the list specification so you can't flatten the list easily any more.
If you are running bind you can use my python script to aggregate various block lists into a zone file: https://github.com/Trellmor/bind-adblock