Live data from Hacker News

Ad blocking with Raspberry Pi and Pi-hole

cri.dev

141–150 of 163 posts

Re: Ad blocking with Raspberry Pi and Pi-hole

#141
post #4

> Use it for ad-blocking in your home network and to finally browse the web, watch videos etc. without annoying ads. It doesn't really do this as well as a browser adblocker, YouTube ads for example can't effectively be blocked with pihole

a lot of in browser ad blockers are based on url and css selector patterns. Meaning that if the developer updates the site which changes the dom, the ad blocker may not work.

Re: Ad blocking with Raspberry Pi and Pi-hole

#142
post #134

Earlier quoted context omitted.

As always, it's not the ads most of us object to- it's the trackers. Google's original idea for monetizing the web, that you would be interested in something related to what you were searching for, apparently failed and now everybody's trying to follow you around to see what you might be interested in purchasing. It needs to stop. I know it's a lame solution but I use ff and containers and have a "shopping" container…

>it's not the ads most of us object to I would love to see real data on this! Most of my peers don't want to be marketed to, at least when it comes to internet advertising. Definitely when it comes to traditional advertising (ie billboards are an eyesore, TV ads are offensive or irrelevant or just plain annoying).

Depending on how old you are, it used to be the norm in magazines and newspapers. You have an educational product so you buy an ad on the educational feature, for example.

I understand that advertisers pay for the sites I use and I would turn off the ad-blocker if I was promised I wasn't being tracked. But we have no control over those decisions so we do what we can.

Re: Ad blocking with Raspberry Pi and Pi-hole

#143
I'm surprised, that no one here has mentioned Eblocker yet. It works a bit like Pi-hole, but is much easier to install and use. Eblocker used to be a commercial product (with its own hardware), but since this didn't work out the company open-sourced it a few months ago. It's free now, has a good interface and great performance and the former developers are still working on it. You can install it on a raspberry, but also on other SBCs. I'm in no way affiliated with them, just a happy user. https://eblocker.org/en/

Re: Ad blocking with Raspberry Pi and Pi-hole

#144
post #128

Earlier quoted context omitted.

I am a djbdns user. I also use nsd and unbound. I do not use "upstream" third party DNS, such as 9.9.9.9. Surprised to hear that anyone still uses MaraDNS. What I am curious about are these massive blocklists. Does anyone actually read through them. Does it make sense to block 60,000 hosts when only, say 100 or even 1000, ever stand a chance of being accessed by a user's computer -- due to the user's particular usage…

In my experience, using an upstream server is faster and more reliable than having a DNS server on a home network recursively solve the name. That said, MaraDNS/Deadwood does have full recursion support, which resolves correctly over 99.9% of domains, but there is that .1% or less of misconfigured domains which only resolve when a recursive DNS server is bug-for-bug identical to BIND. NSD/Unbound are good DNS servers…

I do not do recursive lookups at home. I store the DNS data I need in custom zone files. Once I have the data stored, this is faster than recursive lookups, especially with tinydns listening on localhost. djbdns works great for me year after year. I would never use MaraDNS.

Re: Ad blocking with Raspberry Pi and Pi-hole

#146
post #128

Earlier quoted context omitted.

I am a djbdns user. I also use nsd and unbound. I do not use "upstream" third party DNS, such as 9.9.9.9. Surprised to hear that anyone still uses MaraDNS. What I am curious about are these massive blocklists. Does anyone actually read through them. Does it make sense to block 60,000 hosts when only, say 100 or even 1000, ever stand a chance of being accessed by a user's computer -- due to the user's particular usage…

Well, why not? 60.000 isn't a huge amount for a modern computer. If they're known to contain ads/trackers you want to block, then why not include them? It might make sense though to do a periodic run through them to see if they still exist.

[deleted]

Re: Ad blocking with Raspberry Pi and Pi-hole

#147

Earlier quoted context omitted.

My TV made me accept a terms of service agreement on first boot.

That (on its own) doesn't mean that it's legal, I'd imagine. At least in the EU, doesn't GDPR prohibit such non-choices?

It does now but it's possible it was bought before that time.

Re: Ad blocking with Raspberry Pi and Pi-hole

#148
I set this up a couple of months ago and have been really happy with the results. Ad blockers on our iPhones/iPads are fine, but not always completely effective. I can't install one on my corporate laptop so there's no way around ads there. Using Pi-Hole was a perfect fit. I've only had to whitelist a single site that had problems with it.

Re: Ad blocking with Raspberry Pi and Pi-hole

#149
post #25

Please do note that Android appears to be quite weird in regards to accepting network set DNS. My observations so far have been that Android tends to ignore any DNS set by either the network via DHCP or statically set. Android instead probes the gateway for 8.8.8.8, and happily uses that instead. The only way I have been able to solve this has been to setup a VPN (I prefer wireguard) on the pihole. Android seems to a…

If you have a decent router, then you can just forcibly redirect any DNS requests from 8.8.8.8 to your PiHole.

I have blocked port 53 forward and redirect. On my ISP's router (which I am forced to use), you can't block port 53 on the gateway itself.

I don't want to add an extra router because that would add unnecessary latency. The above is not an unusual setup at all.

Post reply on HN