Pi-hole

De wiki jackbot
Aller à la navigation Aller à la recherche


Pour bloquer la pub :

https://pi-hole.net/

https://docs.pi-hole.net/


Modifier l'affichage

le nombre de clients

Par défaut seulement 10 clients s'affiche dans l'interface de pi-hole. Si comme moi vous souhaitez en voir plus, il faut alors modifier le fichier :

/var/www/html/admin/scripts/pi-hole/js/index.js

Repérer la fonction :

function updateTopClientsChart() {
  $.getJSON("api.php?summaryRaw&getQuerySources=20&topClientsBlocked", function (data) {
    if ("FTLnotrunning" in data) {
      return;
    }

Ici le morceau getQuerySources=20, permettra d'afficher 20 clients