Created
March 1, 2019 14:48
-
-
Save jdelamater99/4851c31ec62dadd593566d3dca23fe2d to your computer and use it in GitHub Desktop.
Temp Disable PiHole
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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