Earlier quoted context omitted.
> One can achieve this locally, on a laptop/desktop, using https://github.com/StevenBlack/hosts I use this with DD-WRT to get network-wide filtering. It's not perfect (only updates on router boot), but good enough for me. Additional DNSMasq options: addn-hosts=/tmp/ad-hosts no-resolv strict-order server=8.8.8.8 server=8.8.4.4 Startup script: wget -qO /tmp/ad-hosts-v4 https://raw.githubusercontent.com/StevenBlack/host…
Network-wide is the way to go. Hosts files can be tricky to set up on phones and tablets. I run dnsmasq on a pi as my ISP router is pretty limited. You can't even change the DNS servers, so the pi has to do DHCP too. I use it to block other things like fixed banner overlays. With caching you can get it to work when you go off WiFi too [0]. Not sure I'd use Google's DNS servers though. Your ISP's are probably better f…
Unfortunately my ISP's (Sky, UK) DNS servers aren't particularly reliable. My devices are behind the DD-WRT router that forces its own DNS settings (other servers are intercepted), but the rest of the family connects directly to the ISP router[1]. Multiple times I've been browsing the Internet without issue, but other people have been unable to use the Internet. Changing their device to use Google's DNS server resolved the issue.
[1] Been meaning to merge the two for a while, but haven't got around to it yet