Is there an HTTP API (to disable blocking)?

One of the things I find myself doing a lot is temporarily disabling my Pi-hole. Either I can't figure out what rule is blocking something I need, or I don't want to permanently whitelist a thing. So I often visit my Pi-hole's webpage, log in, disable for 30 seconds, then do the thing I need to do (usually this is clicking on "unsubscribe" in emails).

I would love to make a widget on my desktop and phone that does this for me with a single click. To do so, an HTTP REST API would be ideal, but I can only find some docs about a telnet API. Is there an HTTP REST option?

http://pi.hole/admin/api.php?disable=300&auth=PWHASH

Where PWHASH is the value of WEBPASSWORD in /etc/pihole/setupVars.conf . This will disable blocking for 300 seconds.


A REST API will come one day with Pi-hole v6.0

1 Like

Perfect, thank you!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.