Pihole configuration


Adding entries to settings / API / Web interface / Top Domains / Top Advertisers adds a line to /etc/pihole/setupVars.conf (example):


When a lot of domains needs to be excluded, this line becomes very long and difficult to read.

Add configuration files in /etc/pihole OR table to the database, to exclude (don’t display):

  • Top Domains / Top Advertisers (dashboard)
  • Top Clients (dashboard)
  • Domains, allowed and blocked (query log)

This will make it easier to browse the query log, looking for possible other domains that need to be blocked / allowed.


SetupVars is not a file that users should be reading or editing; the length of its lines should not matter. You can edit the list in the web interface and it will be a nice newline-separated list.