# of Top Clients (Total & Blocked)

Hi!

I'm trying to increase number of shown Top Clients (both Total & Blocked) to 25 without success...
I found some old(ish) guides but couldn't get these to work.
Anyone who could point out where this change should be done.

All help appreciated!

This should help you:

But beware: changing the local pihole web interface code might prevent your installation from any further pihole update.

Sorry but I'm not following.
It's possible but if modified, this might block future updates??
That doesn't sound so wise then...

Any plans/possibilities to add this to Web-GUI to be either selectable via 3-4 predefined values (10, 25, 50) or "scroll wheel" (0-99)?

Exactly. If you modify pihole's code, any future update might break.

Not that I'm aware of. You can create a feature request if you like. There is already a similar one, but it only requests to list "all clients"

1 Like

As an alternate method of obtaining the data (pending your new feature request) there are some example command line entries that will query the long term database:

top clients for the past 24 hours

echo ">top-clients (25) >quit" | nc localhost 4711

top blocked domains (limited to 25 in this instance) for the past 24 hours

sqlite3 /etc/pihole/pihole-FTL.db "select domain, count(domain) from queries where timestamp>=strftime('%s','now')-86400 group by domain order by count(domain) desc Limit 25"

Ty, but I'm using the gui as my primary interface.
Better overview and visually more likable.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.