-
Notifications
You must be signed in to change notification settings - Fork 27
V5 whitelist/blacklist #76
Comments
Is this why the option to whitelist/blacklist seems to be gone in latest Flutterboard? |
@p1r473 that is correct! Perhaps you can report the server response from your own Pi-hole. Try running the following in your browser:
This would look something like the following:
This used to return a JSON object of the whitelists. On my V5 Pi-hole, the server crashes with a HTTP status code 500. As a sidenote, the official documentation seems to indicate that the black/whitelisting commands are now only accessible via direct SQL. Not sure how this could be integrated into the app, but I hope there still is an API endpoint somewhere... |
Same here. |
Looks like pihole -w and pihole -b still work, The whitelist and blacklist commands. |
Thank you for trying it out 👍. I will try and create an issue over at the Pi-hole team.
These are CLI commands right? I've thought about using SSH in the app, but it sounds like a security nightmare. |
Yup those are CLI commands. |
@sterrenburg can you link your PiHole GitHub issue so I can post my evidence there? |
Just now I posted on the Pi-hole discourse, thank you for taking a look: https://discourse.pi-hole.net/t/black-whitelisting-does-not-work-on-v5-api/33119 The new API is being worked on in a Pi-hole pull, I imagine that the current API interface will need to change on my end once it is released. |
Here a Pi-hole developer wrote that it is resolved in Pi-hole v5.1 and the current version seems to be 5.1.2, so I guess it's fixed now on the Pi-hole side. |
@elmicha thank you for bringing this to my attention! Assuming all goes well, I expect to add white-/blacklist support back in the upcoming release. |
* Add whitelist/blacklist support, fixes #76
Since V5 fetching the whitelist with the old format throws a server error:
{{ base_url }}?list=white&auth={{ auth }}
{{ base_url }}?list=black&auth={{ auth }}
These return a 500 status on my local Pi. Not sure if the API changed or my Pihole installation is funky.
The V5 dashboard seems to get its data
http://pi.hole/admin/scripts/pi-hole/php/groups.php
with some url encoded form data.If anyone manages to query their Pi properly, please let me know!
The text was updated successfully, but these errors were encountered: