Giter Club home page Giter Club logo

pihole-disable-buttons's Introduction

PiHole Disable Buttons

A micro, stupid simple PiHole "control" panel - designed to allow your users to disable PiHole for a limited amount of time (without giving them the admin password). Host locally (requires PHP), direct an old device's browser to the page, and mount the device wherever you want.

Installation

You can find more detailed setup info on my blog post here.

Assuming you already have a web server with PHP installed, installation takes 2 steps:

  1. Create the directory where you want to host the panel and clone the repository into it:

git clone https://github.com/mattwebbio/pihole-disable-buttons.git .

  1. Copy config.example.php to config.php and edit it with your PiHole address and API key.

Security Precaution

Theoretically, this app doesn't need PHP - I'm merely using it to hide the API key. If you don't use HTTPS on your PiHole server (the API URL you entered in the config.php) and you're not hosting this panel on the same server as PiHole (your API URL doesn't start with 127.0.0.1), then this kind of defeats the purpose and you may be transmitting your API key un-encrypted across the network.

Extra Information

Built with just HTML/CSS, jQuery and PHP. The UI checks the status of the PiHole server every 10 seconds. If you want more/different disable-length options, just adjust index.html and do.php.

If you're going to mount an old iPhone like I did, use Guided Access to prevent users from leaving Safari.

FAQ

  • API Error - check the API entered key in config.php
  • Connection Error - make sure the web server can ping the PiHole server (and make sure PiHole is online!)
  • Stuck on Connecting... - make sure your browser's Javascript is enabled

pihole-disable-buttons's People

Contributors

mattwebbio avatar

Stargazers

Charles Porth avatar JakeNology avatar  avatar Jason Sievert avatar Jon Stroh avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.