by lostlogin · 4y ago · 0 comments
Plain old Pihole works though.
0.0.0.0 adservice.google.com
::1 adservice.google.com
0.0.0.0 ssl.google-analytics.com
::1 ssl.google-analytics.com
0.0.0.0 www.google-analytics.com
::1 www.google-analytics.com
0.0.0.0 www.googletagservices.com
::1 www.googletagservices.com
0.0.0.0 www.googletagmanager.com
::1 www.googletagmanager.com
0.0.0.0 partner.googleadservices.com
::1 partner.googleadservices.com
0.0.0.0 pagead2.googlesyndication.com
::1 pagead2.googlesyndication.com
0.0.0.0 googleads.g.doubleclick.net
::1 googleads.g.doubleclick.net
0.0.0.0 securepubads.g.doubleclick.net
::1 securepubads.g.doubleclick.net
I recently got a new MacBook for work and when I was surfing there was all sorts of popups and ads and such. I got none of these things on my personal iMac. It took a day or two for me to realize that it wasn't about (e.g.) the different version of macOS or Safari that I was running.Once I updated the work machine's hosts(5) file things it was a night-and-day difference.
I cannot believe that people tolerate surfing the web without any ad filtering / blocking.
Yup: I set up one the other day and it "Just Works [TM]". It's trivial to set up if you've got any experience with the Pi and in case you don't there are many tutorials out there. Highly recommended.
A word of warning though, if you run it on a machine with lots of containers, is buggers up internet access for the other containers and it’s a complete pain to solve (and sometimes reverts to broken on reboot).