Subscribe to user-maintained whitelists, and whitelist from a file


#1

It would be awesome to be able to subscribe to user-maintained whitelists, as well as locally hosted whitelists.

I had the idea a few months ago, and created a repository with lists seperated by service type.

https://github.com/deathbybandaid/pihole-whitelists

Here is on reddit where PromoFaux made a comment on the idea

Edited above from:

A script I’m writing does a file loop that

  1. trims the domain name from a link.
  2. saves the domain name as a variable
  3. saves the domain-variable to a file (sudo echo tee append)
  4. it then removes duplicates, and sorts the list
    The file is single lined. I know how to run pihole -w for every single line, but I want to run one command to whitelist them all.

3rd Party Whitelist
Global Whitelist
3rd Party Whitelist
#2

What about making a script that puts them in a space-separated list (domain1.com domain2.com domain3.com), so that you can just copy paste it into the command? pihole -w domain1.com domain2.com domain3.com

Edit: You could even run that command as part of the script.


#3

I thought about doing that, which might be the solution to the script I’m currently working on, but there are also some other projects that might benefit from being able to directly import from a file.


#4

This also ties in with my idea that someday we could subscribe to whitelists, the same way we can subscribe to blacklists.


#5

Do you know of any public whitelists like you’re suggesting?


#6

I’ve seen several on github, (I occasionally just search github for the term pihole.)

I also started this repository based on things I’ve found on commonly-whitlisted pages, (here, github, reddit)

https://github.com/deathbybandaid/pihole-whitelists

It’s separated by type of service, so that it’s the users choice what to allow.

Also, when running pihole -g it almost feels silly to have over 200 domains whitelisted. (some of them preemptively to avoid issues to services that I use)


#7

Here is on reddit where PromoFaux made a comment on the idea


#8

You can make a separate feature request for the idea here.


#9

I converted the thread into a feature request for that, as that is more/less what I was going for.