News for hackers. Stuff that matters.
Re:Blocky – a DNS proxy and ad-blocker for the local network by poisonborz on Monday April 08, 2024 @07:09AM (#39968478)
My problem with network-level adblockers, also PiHole is that they break a lot of services (yeah it's mostly sloppy or malicious intent from service provider but still). On a browser you can quickly disable uBlock for that site, it is much more tedious for these services - also because it's not even clear that the filtering is causing the problem, also because it maybe someone else on the network experiencing the problem.
Re:Blocky – a DNS proxy and ad-blocker for the local network by ai_what on Monday April 08, 2024 @08:10AM (#39968874)
I have a silly "trick" for this. In Firefox you can add a SOCKS5 proxy and click "Proxy DNS with SOCKS5 proxy". This bypasses the system DNS.

So for example, if you make a container with this, then you can just quickly open the URL that's blocked in the other container and it will bypass the network-level DNS adblock.

There are other ways to do it without a container, I'm sure, maybe with an add-on/toggle or something.

My VPN provider gives free SOCKS5 access to a few servers, so it didn't cost me anything more.

Re:Blocky – a DNS proxy and ad-blocker for the local network by belthesar on Monday April 08, 2024 @11:42AM (#39970852)
That's a clever trick. It's also pretty trivial to set up a SOCKS5 proxy with Shadowsocks if it's desirable to keep that DNS resolution local.
Re:Blocky – a DNS proxy and ad-blocker for the local network by ranger_danger on Monday April 08, 2024 @12:33PM (#39971377)
How are you using a different proxy per container tab? I've tried FoxyProxy but it leaked DNS requests through the local network resolver even with SOCKS5 proxies.
Re:Blocky – a DNS proxy and ad-blocker for the local network by AwaAwa on Monday April 08, 2024 @02:30PM (#39972467)
Go into the main extension settings of 'Firefox Multi-Account Containers' that lists your containers and click on 'Manage containers'. Select any container and the last option on the new page is 'Advanced Proxy Settings'. This setting is per container.
Re:Blocky – a DNS proxy and ad-blocker for the local network by ranger_danger on Tuesday April 09, 2024 @12:50PM (#39981324)
ah, that would be way too much work for a one-off proxy switch for one site
Re:Blocky – a DNS proxy and ad-blocker for the local network by cyberpunk on Monday April 08, 2024 @07:15AM (#39968528)
I’ve been using https://oisd.nl/ on my network for some time (just cronned into an unbound config file) and nothing breaks.

If you report a website breaking to the maintainer, he removes the offending block.

Works well, I can recommend it.

And it reminds my to send them a little money in thanks.

Re:Blocky – a DNS proxy and ad-blocker for the local network by UberFly on Monday April 08, 2024 @03:28PM (#39972883)
This looks really good. Thanks for suggesting it.
Re:Blocky – a DNS proxy and ad-blocker for the local network by thangngoc89 on Monday April 08, 2024 @07:27AM (#39968608)
What annoyed me the most is actually clicking on ads from Google Search. Sometime I searched a product and I couldn't clicked on the first result because they are advertisements.
Re:Blocky – a DNS proxy and ad-blocker for the local network by Spare_account on Monday April 08, 2024 @07:48AM (#39968730)
Every time threads like this come up I am reminded that Google has ads. I don't see them, presumably because of uBlock Origin.

I'm typing this response not to smugly boast, but because it's a lead in to the question that your comment raised within me:

Are you using Pihole to block ads at a network level, but not also using a browser extension to block them at the client?

Re:Blocky – a DNS proxy and ad-blocker for the local network by scopeh on Monday April 08, 2024 @08:20AM (#39968939)
personally i use both. PiHole and uBlock. But PiHole is network wide so smart TVs iPads, etc in the house also get the benefit.
Re:Blocky – a DNS proxy and ad-blocker for the local network by quickslowdown on Monday April 08, 2024 @07:58AM (#39968805)
I'm in the same boat as you, but taking it a step further, I'm completely blind to the first 1/3rd of google search results. The first 3 are already ads, and then there's the "quick info" card on most searches. I've subconsciously trained myself to just flat out skip over those results.

So in my case, I don't know that an ad blocker really even helps me on google, because I'm ignoring those first results anyway.

Re:Blocky – a DNS proxy and ad-blocker for the local network by maicro on Monday April 08, 2024 @09:01AM (#39969272)
Yup, skip all sponsored and ad content. I do the same on Amazon and ebay - even when the advertised product is _exactly_ what I want, and the best price available, I refuse to purchase from a sponsored listing.
Re:Blocky – a DNS proxy and ad-blocker for the local network by quickslowdown on Monday April 08, 2024 @02:04PM (#39972225)
100%.
Re:Blocky – a DNS proxy and ad-blocker for the local network by nkozyra on Monday April 08, 2024 @01:31PM (#39971911)
> Are you using Pihole to block ads at a network level, but not also using a browser extension to block them at the client?

A lot of Pihole users don't bother with browser extensions. In extension-only use cases, these results would just not show up. With Pihole, you have to copy and paste the URL and just enter directly in the browser. It's not like a huge roadblock.

Re:Blocky – a DNS proxy and ad-blocker for the local network by muppetman on Monday April 08, 2024 @02:22PM (#39972394)
Ads exist on mobile devices. In iOS games. All sorts of places/devices that can't run uBlock origin. That's why you use a DNS level blocker as well.
Re:Blocky – a DNS proxy and ad-blocker for the local network by ceejayoz on Monday April 08, 2024 @09:04AM (#39969312)
Honestly, I love this aspect of my Pihole. Stops Google stealing those pennies from the businesses who were already gonna be the #1 result anyways.
Re:Blocky – a DNS proxy and ad-blocker for the local network by xp84 on Monday April 08, 2024 @12:28PM (#39971321)
The "sponsored ads on your own name" extortion racket really is the worst.
Re:Blocky – a DNS proxy and ad-blocker for the local network by martin_a on Monday April 08, 2024 @07:16AM (#39968536)
Is that your experience? Honest question, because only yesterday, after several years with PiHole and uBlock Origin, I found that a Shopify shop wasn't working for me. But that's probably the only issue I encountered after all those years...
Re:Blocky – a DNS proxy and ad-blocker for the local network by jokethrowaway on Monday April 08, 2024 @07:19AM (#39968559)
Not parent but yes, that's exactly why I stopped using PiHole
Re:Blocky – a DNS proxy and ad-blocker for the local network by Dalewyn on Monday April 08, 2024 @07:19AM (#39968552)
I've come across a few borking issues, including online banking because card rewards are counted as advertising in the list(s) I use.

Such problems are few and far between, though, and it wasn't that hard to figure out what to whitelist (granted I'm a computer nerd, not everyone is).

Re:Blocky – a DNS proxy and ad-blocker for the local network by davitocan on Monday April 08, 2024 @08:41AM (#39969101)
Home Depot search breaks for me when using Blocky, and is the only consistent issue I observe.
Re:Blocky – a DNS proxy and ad-blocker for the local network by Marsymars on Monday April 08, 2024 @10:31AM (#39970125)
Home Depot is the most fragile website I'm forced to deal with. It regularly breaks in novel ways for me when it can't load some random dependency that it doesn't actually need the functionality from.
Re:Blocky – a DNS proxy and ad-blocker for the local network by radicality on Monday April 08, 2024 @11:11AM (#39970568)
And it doesn’t load at all from outside the US! I once wanted to purchase before coming back, to learn I need to vpn back in to the US to order something. Crazy.
Re:Blocky – a DNS proxy and ad-blocker for the local network by userbinator on Monday April 08, 2024 @08:10PM (#39975053)
Thank the GDPR for that, probably.
Re:Blocky – a DNS proxy and ad-blocker for the local network by dorianh on Monday April 08, 2024 @10:02AM (#39969806)
Unfortunately yes, there are features on big websites which just don't work.

Now every time, I have an issue with any website, my first instinct is to turn off pi-hole. Most of the time, pi-hole is not the even the issue, but sometimes it is. It's annoying to browse the internet while constantly thinking "Maybe there is an issue on my side".

Re:Blocky – a DNS proxy and ad-blocker for the local network by dspillett on Monday April 08, 2024 @01:10PM (#39971733)
> Unfortunately yes, there are features on big websites which just don't work.

It is very rare that I find something stalker-blocking (pihole on my local network & VPN) causes to break that I care enough to turn blocking off for. It might have happened as little as twice, one of those occurrences predating PiHole. Information is usually in many other places or I really don't care that much, and shopping sites that break are waving a red flag by being broken so I'll go look elsewhere.

I do have a bookmarklet on my devices to turn it off for a few minutes, but that was used more when testing it then it has been since.

I mostly live alone so don't have the problem of other users, such as a spouse or kids, having trouble. Guests always have the option of using their normal mobile access instead of the local wireless if they experience insurmountable problems.

Re:Blocky – a DNS proxy and ad-blocker for the local network by dorianh on Monday April 08, 2024 @02:41PM (#39972537)
That's good to hear. I'm going to try oisd, hoping for fewer false positive :).
Re:Blocky – a DNS proxy and ad-blocker for the local network by lencastre on Monday April 08, 2024 @07:53AM (#39968766)
Pi-Hole Remote (iOS app) is your friend
Re:Blocky – a DNS proxy and ad-blocker for the local network by nirav72 on Monday April 08, 2024 @09:32AM (#39969555)
Yep. There are also browser extensions that will allow pausing pihole blocking temporarily.

or simply these URLs:

Disable URL : http://<pihole ip address or hostname>/admin/api.php?disable&auth=[your pihole password]

Enable URL : http://<pihole ip address or hostname>/admin/api.php?enable&auth=[your pihole password]

Disable for [X] Seconds: http://<pihole ip address or hostname>/admin/api.php?disable=[X]&auth=[your pihole password]

Re:Blocky – a DNS proxy and ad-blocker for the local network by derpymcderpface on Monday April 08, 2024 @07:33AM (#39968640)
Yeah, this is always my hurdle implementing house wide. I can toggle it on and off when I have the stubborn link but my girlfriend just gets utterly annoyed. I just manually point some of my devices at my local server and leave it at that. Guess I should look into aws free tier and set it up there as well or just say screw it and use dns.adguard.com again.
Re:Blocky – a DNS proxy and ad-blocker for the local network by squaresmile on Monday April 08, 2024 @09:26AM (#39969496)
I use a quick setting to quickly switch between ad blocking dns and normal dns for bad websites or captive portal.

https://f-droid.org/en/packages/com.jpwolfso.privdnsqt/

Re:Blocky – a DNS proxy and ad-blocker for the local network by avel on Monday April 08, 2024 @11:45AM (#39970872)
Pretty cool. If you have adguard home and google assistant, you have access to a switch that can enable/disable adguard home protection. So with the homeassistant app you can add that as a quick tile as well. The only caveat is that this will disable it across all devices.
Re:Blocky – a DNS proxy and ad-blocker for the local network by illnewsthat on Monday April 08, 2024 @09:26AM (#39969504)
I created a bit.ly link that points to http://yourpiholehost/admin/api.php?disable=300&auth=api_key

Bookmark it for myself and other people in the house and then turn it off for five mins whenever there is an issue.

Re:Blocky – a DNS proxy and ad-blocker for the local network by ceejayoz on Monday April 08, 2024 @12:16PM (#39971199)
Would be fun to hook this up to one of those IoT Amazon buttons.
Re:Blocky – a DNS proxy and ad-blocker for the local network by xp84 on Monday April 08, 2024 @12:26PM (#39971312)
Home Assistant can definitely do this. I just now successfully got my HA connected to an Aqara Zigbee button (which, hilariously, only briefly functioned when I was using it with Aqara's garbage hub).
Re:Blocky – a DNS proxy and ad-blocker for the local network by culopatin on Tuesday April 09, 2024 @04:17PM (#39983772)
Or say “hey google disable ad blocking” and triggering it. Then google learning of this and doing it all the time behind your back
Re:Blocky – a DNS proxy and ad-blocker for the local network by nirav72 on Monday April 08, 2024 @09:28AM (#39969520)
I use both Pihole and ublock. While ublock is fine for desktop browser , pihole is useful for mobile devices, as well as blocking access for devices and apps that tend to be chatty with data it sends out. For example - I unfortunately bought a few Eufy security cams long before it was found that Eufy was sending user data out to its AWS instance. It was easy to block that access via AWS in Pihole. Of course, it doesn't always work. I've found some devices absolutely need to call home before they'll function.
Re:Blocky – a DNS proxy and ad-blocker for the local network by qwertimus on Monday April 08, 2024 @10:26AM (#39970067)
I've had the most luck with OISD as the blocklist; others have the exact problems you describe (in fact all other blocklists I've tested have had frequent issues). Since changing, I've had maybe 2 sites that didn't play nice with the filtering. These issues are not inherent to network-level blockers, but the configuration of those blockers.
Re:Blocky – a DNS proxy and ad-blocker for the local network by avel on Monday April 08, 2024 @11:40AM (#39970833)
It's not that tedious.

In adguard home you have a switch on/off in the web UI. You can also expose that switch to homeassistant.

And there are some other good ideas in this thread as well for android and ios.

Re:Blocky – a DNS proxy and ad-blocker for the local network by zzyzxd on Monday April 08, 2024 @12:03PM (#39971060)
After disabling it on the UI, your device may still cache the DNS records for a few minutes. There's no immediate feedback on whether disabling adblocking changed anything. It is extremely tedious especially for non-technical users, and adds "tech-support" burden to their technical friend/family who set it up in the first place.
Re:Blocky – a DNS proxy and ad-blocker for the local network by theideaofcoffee on Monday April 08, 2024 @12:01PM (#39971036)
I have a handful of different wifi SSIDs set up on my network at home to help with this, some route their DNS queries through a pihole instance and others (say, without the “AB” for ‘adblock’ suffix on their ssid names), don’t. Each ssid is their own vlan and each has their own dhcp listening that doles out the pihole instance address on the Adblock-enabled nets.

It’s easy enough to just connect to a different ssid if I see anything breaking, but it’s rare enough that I keep it connected to the pihole/adblock network at all times. Works super well.

Re:Blocky – a DNS proxy and ad-blocker for the local network by jakjak123 on Monday April 08, 2024 @03:04PM (#39972708)
That is a great idea. What do you use to run multiple wifis with separate vlan?
Re:Blocky – a DNS proxy and ad-blocker for the local network by JackGreyhat on Monday April 08, 2024 @05:06PM (#39973708)
An AP or wlan router that supports vlan to ssid mapping.
Re:Blocky – a DNS proxy and ad-blocker for the local network by theideaofcoffee on Monday April 08, 2024 @07:10PM (#39974642)
I use some of the lower-end wifi 6 APs, coupled with an AC (controller), from fs.com, they work solidly, and with seamless roaming around the house, after figuring out some of the rather odd translation in the AC web interface. After some annoying small steps, the ssh consoles on both the AC and the APs are all that I use.

They’re mated to a Juniper EX switch running stock JunOS over PoE, primarily one AP for each floor and another one or two to fill in dead spots. I haven’t had to touch it since I’ve set it up, just keeps chugging along.

Slight over-kill for the environment, but I’m so damn tired of using bad wifi I just wanted to do it right!

Re:Blocky – a DNS proxy and ad-blocker for the local network by apexalpha on Monday April 08, 2024 @01:16PM (#39971787)
Yes, I ran into these issues when I installed PiHole in my family home.

Most issues were with Google Ads inside Google Search. Often these are relevant and actually what you're looking for. But they don't work.

I tried rewriting the "this is blocked" page that PiHole would serve so it included a button to temporarily disable blocking for said url but it turned out to be harder than I thought.

Re:Blocky – a DNS proxy and ad-blocker for the local network by efitz on Monday April 08, 2024 @01:22PM (#39971827)
PiHole has an API that can be used to enable and disable the ad blocker.

I have a bunch of home automation set up, and through the use of HomeBridge and a plug-in I have a button in my Apple Home app on my iPhone to enable or disable the ad blocker. Since it's exposed as a smart home thing, you could hook it up to a voice assistant like Siri or Alexa.

I built an integration once for an Elgato StreamDeck.

You can also download apps that do the same thing; I have one called "Pi-Hole Remote" that works great.

Yes, ad blocker blockers are annoying, but they are trivially worked around.

Re:Blocky – a DNS proxy and ad-blocker for the local network by culopatin on Tuesday April 09, 2024 @04:19PM (#39983789)
I’ll definitely implement this as soon as I have the pihole pc back up. My girlfriend will be very happy
Re:Blocky – a DNS proxy and ad-blocker for the local network by pnw on Monday April 08, 2024 @02:46PM (#39972577)
Pi-hole Remote for iOS has a disable for X minutes feature which is invaluable when you do run into one of these sites. I use it maybe once a week.

https://apps.apple.com/nl/app/pi-hole-remote/id1515445551?l=...