More than 10 Top Blocked Domains
Hi, is there a way to view more than 10 domains in Top Blocked Domains table? Maybe it can be done manually via command line? Thanks.
Posted Oct 5, 2017, 3:30 PM UTC
Hi, is there a way to view more than 10 domains in Top Blocked Domains table? Maybe it can be done manually via command line? Thanks.
Posted Oct 5, 2017, 3:30 PM UTC
Top Domains (Those which aren't blocked):
nc "127.0.0.1" "$(cat /var/run/pihole-FTL.port)" -q 1 <<< ">top-domains(50)"
Blocked Domains:
nc "127.0.0.1" "$(cat /var/run/pihole-FTL.port)" -q 1 <<< ">top-ads(50)"
This is outputting the Top 50 domains, not just blocked domains. Correct?
Derp, serves me right for not reading every word! Edited my post to have both :)
Thank you very much!
Thank you. I was looking for an easy way to change the dashboard. Maybe I will try my HTML foo... it has been a while. :)
If you want to get it in JSON form, this should work (replace # with the number of items you want):
http://pi.hole/admin/api.php?topItems=#
I would like this too.