r/pihole•
weeks101

More than 10 Top Blocked Domains

Solved!

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

137
akchicken•

I would like this too.

2
WaLLy3KDev - I bash, I block, I protect•

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)"

1
higgiefresh•

This is outputting the Top 50 domains, not just blocked domains. Correct?

2
WaLLy3KDev - I bash, I block, I protect•

Derp, serves me right for not reading every word! Edited my post to have both :)

2
weeks101OP•

Thank you very much!

2
akchicken•

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. :)

1
Mcat12Developer•

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=#

1