You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often find myself checking the querylog when some website/feature of a website doesn't work to see whether pi-hole blocked it and whitelisting if it's something I need rather than turning the pi-hole off and back on. Being able to see recent blocked entries in the extension with the ability to whitelist them as with Current Url would be very useful as it would be a quicker way to unblock the hosts causing the issue.
There's the API method /admin/api.php?getAllQueries&from=1664814000&until=16648154510&auth=<API_KEY> where from and until are unix timestamps. From=current time minus X seconds and until=current time would give us the recent queries. As per https://discourse.pi-hole.net/t/pi-hole-api/1863 column 5 should allow filtering to blocked queries (answer type=1 blocked by gravity.list) with column 3 containing the requested hostname. Example output with one resulting query:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I often find myself checking the querylog when some website/feature of a website doesn't work to see whether pi-hole blocked it and whitelisting if it's something I need rather than turning the pi-hole off and back on. Being able to see recent blocked entries in the extension with the ability to whitelist them as with Current Url would be very useful as it would be a quicker way to unblock the hosts causing the issue.
There's the API method
/admin/api.php?getAllQueries&from=1664814000&until=16648154510&auth=<API_KEY>
wherefrom
anduntil
are unix timestamps. From=current time minus X seconds and until=current time would give us the recent queries. As per https://discourse.pi-hole.net/t/pi-hole-api/1863 column 5 should allow filtering to blocked queries (answer type=1 blocked by gravity.list) with column 3 containing the requested hostname. Example output with one resulting query:{"data":[["1664814001","A","self.events.data.microsoft.com","devicename","1","2","4","5","N\/A","-1","N\/A#0",""]]}
Beta Was this translation helpful? Give feedback.
All reactions