News for hackers. Stuff that matters.
Re:Ad blocking with Raspberry Pi and Pi-hole by LynxInLA on Monday May 04, 2020 @06:57PM (#23074360)
Any chance you can share that shortcut? I currently have a bookmark that my roommate can hit, but a shortcut would be better.
Re:Ad blocking with Raspberry Pi and Pi-hole by css on Monday May 04, 2020 @06:59PM (#23074372)
I use a modified version of this with hard coded times so there is no user input: https://routinehub.co/shortcut/2904
Re:Ad blocking with Raspberry Pi and Pi-hole by christian_fei on Monday May 04, 2020 @07:05PM (#23074415)
thank you for sharing
Re:Ad blocking with Raspberry Pi and Pi-hole by illnewsthat on Monday May 04, 2020 @08:40PM (#23075085)
I do the same and use the shortcut at least once a day for things I don't want to permanently unblock but might need occasionally. I set it via a shortlink on bit.ly so it's easy for people to remember/bookmark.

It points to ..../admin/api.php?disable=300&auth=authkey

300: Time in seconds to disable it.

Auth key: You need to have a password set for the Pi-hole installation, and the API key is the salted version of that password. You can find it as the value for the key WEBPASSWORD in your /etc/pihole/setupVars.conf file.