Hacker News new | past | comments | ask | show | jobs | submit login

Is there a way to quickly disable/re-enable pihole for the network?

With AdGuard DNS or uBlock Origin I still get into situations where occasionally they break a site completely and I have to temporarily disable the plugin (or switch to cell tower dns) to get the site working, so I’d want a quick way out of pi-holing traffic as well




> Is there a way to quickly disable/re-enable pihole for the network?

Bookmark the following URL

  http://pi.hole/admin/api.php?disable=120&auth=PWHASH
Replace PWHASH with the value of your WEBPASSWORD in setupVars.conf

  cat /etc/pihole/setupVars.conf | grep 'WEBPASSWORD=' | cut -c13-
and '120' with the number of seconds you want to disable the Pi-hole filtering for.


Thank you, I’ve been needing to do this frequently.


What kind of sites, if you don't mind sharing?

I've been using pi-hole for 4 years now and I can remember two situations when I had to disable it - and one of those was cloudflare's fault (PS4 cloud saves don't work with 1.1.1.1 DNS)


If you download minecraft mods they are often hosted behind some forced ad-showing website (ad-fly or something). That can be a problem with pi-hole.


I needed to do this recently for eflorist.co.uk. I was unable to complete checkout without disabling pihole.


Working from home - running reports on google analytics and other marketing tools :)


Do you know if its possible to disable pihole only for the client requesting this, or a specific ip?


Not sure. Sorry.


The Web UI has a Disable button, and also quick options for permanent, 10 seconds, 30 seconds, 5 minutes, custom, etc. I think there's also an API as well. I can toggle it via Alexa and Home-Assistant.

It's a feature that's been around for 2 years or more


“Alexa, shut pihole”

Thanks for the tip, I don’t have any home assistants but this would be the first integration I’d set up


I just noticed that the home assistant addon has been deprecated: https://github.com/hassio-addons/addon-pi-hole. I hope that it comes back eventually.


They recommend the AdGuard Home one now... That's why they have replaced it.

I also don't like it as AdGuard is a commercial company, and I have zero need for the added features like parental control.

But I don't really care, I run all the dockers that have nothing to do with home assistant outside of hassio anyway.


To be fair, AdGuard Home is an open source project under GPL, so there's that.


I know. But still I would prefer something a non-profit or volunteer-driven project over one from a for-profit company. Especially in the adblocking business where investor concerns are very likely not going to be aligned with consumer interests. It's not about it being free, I support several free open source projects with donations. I just don't like the clashing interests.

For me that means Firefox, uBlock Origin and pihole (though I ran dnsmasq myself for a while, I like what they've made of pihole now, it's come a long way!)


You can navigate to the admin console (easily done on any machine on your network) and disable it for a certain amount of time very easily

https://i.imgur.com/K6VgV2G.png

Note this is from pihole 4.3, but I can't image 5 would remove this feature.


there is a chrome extension that quickly let's you disable pihole blocking with 1-click. default is 10 minutes. But you can set a custom time in the toolbar popup.


>there is a chrome extension

oh, good to know! This concerned has stopped me from going out of way to setup pihole




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: