The simple solution to temporarily disable pihole from your network!
(Perfect for family members that complain about links not working for time to time!)
Note
The author installed this on Debian 12. Requires pihole-web which is installed by default with pihole to work.
# 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
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.