I have a few things installed on the server and I don't want any of the administrators to accidentally shut down the server with these buttons. Can Pi-Hole be configured to hide these buttons?
No it can't. You would need to manually remove the code from the web page.
Thanks.
I commented in the lines:
<button type = "button" class = "btn btn-danger confirm-poweroff btn-block"> Turn system off </button>
and
<button type = "button" class = "btn btn-danger confirm-reboot btn-block"> Reboot System </button>
in admin / settings.php
Additionally, I commented
case "poweroff":
and
case "reboot":
in admin/scripts/pi-hole/php/savesettings.php
Please not that this edit might conflict with the next Pi-hole update, and likely needs to be made afterwards again.
2 Likes
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.