Skip to content

Instantly share code, notes, and snippets.

@jdelamater99
Created March 1, 2019 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelamater99/4851c31ec62dadd593566d3dca23fe2d to your computer and use it in GitHub Desktop.
Save jdelamater99/4851c31ec62dadd593566d3dca23fe2d to your computer and use it in GitHub Desktop.
Temp Disable PiHole
<html>
<head>
<script>
let timer = 30;
let token = "PIHOLE_TOKEN";
let targetUrl = "http://pi.hole/admin/api.php?disable="+timer+"&auth="+token;
let req = new XMLHttpRequest();
req.open("GET", targetUrl, true);
req.onreadystatechange = function() {
window.history.back();
}
req.send(null);
</script>
</head>
<body>
PiHole temporarily disabled.
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment