Skip to content

A simple webpage that allows temporarily disabling pihole

License

Notifications You must be signed in to change notification settings

elprice/pihole-disable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pihole-disable

The simple solution to temporarily disable pihole from your network! Alt text
(Perfect for family members that complain about links not working for time to time!)

Installation

Note

The author installed this on Debian 12. Requires pihole-web which is installed by default with pihole to work.

On the pihole host:

# clone the project (requires git)
cd /var/www/html
git clone https://github.com/elprice/pihole-disable.git disable

# disable piholes default redirect rule of all non-/admin/ URLs to /admin/ by renaming it. 
#  Don't worry - this behavior is retained in the included pihole-disable config.
cd /etc/lighttpd/conf-enabled
mv 16-pihole-admin-redirect.conf 16-pihole-admin-redirect.conf.old

# move the pihole-disable config to lighttpd dir 
mv /var/www/html/disable/17-pihole-disable.conf 17-pihole-disable.conf

# restart lighttpd
systemctl reload lighttpd

Usage

pihole-disable should be available now at http://\<your-pihole-url\>/disable/

Click either button to disable pihole temporarily!

Tip

If a different path than http://<your-pihole-url>/disable/ is desired then change the directory name under /var/www/html/disable to /var/www/html/<your-desired-path> and replace mentions of "disable" in 17-pihole-disable.conf to <your-desired-path> then restart lighttpd same as above.

About

A simple webpage that allows temporarily disabling pihole

Topics

Resources

License

Stars

Watchers

Forks

Languages