How do I add additional block lists to Pi-hole?


#22

once you have created adlists.list

In your ssh session use the following commands

sudo nano /etc/pihole/adlists.list

'once that opens you are in a text editor like interface and any of the http links that you remove the # in front of will be picked up by the gravity script that pulls all the domains in and makes pihole work

once you are happy with your edits press CTRL+X then y then ENTER
this saves the list

then once all of that is done use the command pihole -g


#23

Thanks technicalpyro

I did get to that stage and I can see that the 5 lists considered safe are already without a #. Am I to assume they have been enabled, then?


#24

are those domains are blocked as wildcards, as suggested in https://adblockplus.org/filter-cheatsheet. For me its not 100% clear if wildcard blacklisting/whitelisting of the adblock scheme is respected in the pihole scripts? If not, may I ask, why?


#25

Because we can’t know in advance if the list of domains are supposed to be wildcard or they are direct domains. The function is a general function to strip out the regex and that’s about it. We don’t have the logic to determine the source of the list or if the user just pasted the list in to a txt file so it’s hard to find out what the source is and then determine if the domains should be wildcarded or added plain.


#26

But there seems to be an explicit switch, dependent on the file header here, isn’t it ? And then the adblock grammar is used.


#27

I thought that got reverted in a later commit. Since that is still in the code, then yes I concur that the domains should be wildcard as per the adblock link.


#28

Just created a list for blocking spotify ads specifically. hope this helps anyone trying to block the ads on spotify as a normal user.

Best,
V