Live data from Hacker News

Ad blocking with Raspberry Pi and Pi-hole

cri.dev

21–30 of 163 posts

Re: Ad blocking with Raspberry Pi and Pi-hole

#21
For my home desktop browser, I just use uBlock Origin to block ads.

But for my phone, I set up a PiHole running on an EC2 instance and VPN into it from my phone. Blocks ads in everything, not just my web browser. The VPN is configured to only tunnel DNS lookups, not traffic, so the EC2 bandwidth bill is minimal.

Re: Ad blocking with Raspberry Pi and Pi-hole

#22

I actually have been doing some work with MaraDNS to have the ability to have a pi-hole sized blacklist. The main source of pi-hole’s blacklist is this Git repo: https://github.com/StevenBlack/hosts That is about 60,000 hosts, so I added MaraDNS support to have up to 500,000 blacklisted names. Since it’s a speed-optimized (not size-optimized) cache, each element takes about a kilobyte of memory, so a blacklist this s…

What is the optimization gained by having 1KB cache slots when the cacheline size on Intel and ARM is typically 64 bytes?

Re: Ad blocking with Raspberry Pi and Pi-hole

#23
post #10

I wish it were more effective in removing Youtube ads on my kids' iPads, but I understand it's a tall order. At least it gets rid of ads in most other apps.

could be the right fit: https://github.com/kboghdady/youTube_ads_4_pi-hole

Thank you! I'll give it a try

Re: Ad blocking with Raspberry Pi and Pi-hole

#24

For my home desktop browser, I just use uBlock Origin to block ads. But for my phone, I set up a PiHole running on an EC2 instance and VPN into it from my phone. Blocks ads in everything, not just my web browser. The VPN is configured to only tunnel DNS lookups, not traffic, so the EC2 bandwidth bill is minimal.

interesting approach

Re: Ad blocking with Raspberry Pi and Pi-hole

#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 accept this.

The above in combination with say a DDNS hostname means that I now have a permanent adblocked VPN on my android phone which isn't too bad.

Re: Ad blocking with Raspberry Pi and Pi-hole

#26
post #20

Is anyone successfully using PiHole with non-technical users? My main concern with putting PiHole on my home network is that for example my mother in law might not understand that she can't get to some web page because it's being ad-blocked, nor would she be able to go to the web admin page and temporarily unblock it. Even as a technical person sometimes it takes a while to figure out that a page isn't working becaus…

I have an iOS shortcut that hits the disable endpoint, so they have a button on their phone they tap that will disable it for 30 minutes at a time.

Re: Ad blocking with Raspberry Pi and Pi-hole

#27
post #20

Is anyone successfully using PiHole with non-technical users? My main concern with putting PiHole on my home network is that for example my mother in law might not understand that she can't get to some web page because it's being ad-blocked, nor would she be able to go to the web admin page and temporarily unblock it. Even as a technical person sometimes it takes a while to figure out that a page isn't working becaus…

Yep, it's for this reason I had to turn off the pi-hole. Random sites that my wife or friends would use wouldn't work, especially log-ins or authentications for various sites, and there's no easy to surface bypass ability. So now I just rely on browser based blocking.

Re: Ad blocking with Raspberry Pi and Pi-hole

#28
post #26
post #20

Is anyone successfully using PiHole with non-technical users? My main concern with putting PiHole on my home network is that for example my mother in law might not understand that she can't get to some web page because it's being ad-blocked, nor would she be able to go to the web admin page and temporarily unblock it. Even as a technical person sometimes it takes a while to figure out that a page isn't working becaus…

I have an iOS shortcut that hits the disable endpoint, so they have a button on their phone they tap that will disable it for 30 minutes at a time.

what an automation!

Re: Ad blocking with Raspberry Pi and Pi-hole

#29
post #26
post #20

Is anyone successfully using PiHole with non-technical users? My main concern with putting PiHole on my home network is that for example my mother in law might not understand that she can't get to some web page because it's being ad-blocked, nor would she be able to go to the web admin page and temporarily unblock it. Even as a technical person sometimes it takes a while to figure out that a page isn't working becaus…

I have an iOS shortcut that hits the disable endpoint, so they have a button on their phone they tap that will disable it for 30 minutes at a time.

Clever!

They would still have to know that the site isn't working because of blocking, but I suppose developing the habit of "website doesn't work, press the magic button and try again" isn't so bad.

If I do PiHole just for myself I think I'll add this button. Thanks!

Re: Ad blocking with Raspberry Pi and Pi-hole

#30
post #26
post #20

Is anyone successfully using PiHole with non-technical users? My main concern with putting PiHole on my home network is that for example my mother in law might not understand that she can't get to some web page because it's being ad-blocked, nor would she be able to go to the web admin page and temporarily unblock it. Even as a technical person sometimes it takes a while to figure out that a page isn't working becaus…

I have an iOS shortcut that hits the disable endpoint, so they have a button on their phone they tap that will disable it for 30 minutes at a time.

Any chance you can share that shortcut? I currently have a bookmark that my roommate can hit, but a shortcut would be better.
Post reply on HN