Hello all I am trying to add Blacklisted wildcard domains using the Block List section.
This would be nice so that I don't have to add them all by hand I can just use a txt file hosted on my web server to add them all in one shot.
Here is part of the full list of domains that I have.
I would like to just use a one line wildcard in the txt file. Is that possible ?
I have a locally hosted .txt file with a bunch of domains that I have added to the Gravity listing.
I would like to thin the list of domains by using an wildcard domain in the list instead of 30+ subdomains.xyz.com
The problem with this method is that when gravity is rebuilt (either manually or via the weekly cron script), your local changes can be overwritten. If you are adding these domains, they should be added to the blacklist, not directly to the gravity list.
The best way to incorporate your lists is to set up regex filters. Documentation here - there is tutorial link in the left column on that page.
No. I misunderstood how you were doing this. The way you have done it is correct. When gravity is built or updated, it will read your list and include your domains in gravity.
You can check this by searching the gravity list for one of your domains.
pihole -q , or through the web interface, or with a grep
sudo grep lunar /etc/pihole/gravity.list
But to your original question, you can put your list domains in regex format, and if that covers them all, then delete your local list from your block lists.
I don't believe so. The file gravity.list is simply a list of domains, without wildcards.
You have essentially two choices:
Leave your list as is and have a few extra lines in the gravity.list. That won't affect performance, as gravity is searched very quickly during a DNS request. Even if you had 1,000 domains on your personal list, that is minute in comparison to the 130,000 domains on the seven standard block lists.
Put your list items into regex format, then remove your list from the block lists, or the domains will end up in multiple places (block list and regex list).
Is there a way to make a backup of this method for deployment to a second pi-hole DNS server? Is the list stored somewhere that is accessible via sftp on the Linux server? If I where to move it to the other box would Pi-Hole pickup on the changes to the list.
The teleporter feature (web GUI > settings > teleporter) exports all the lists in an archive. You can save this to a location, then when the new Pi-Hole is up and running, import them from the network location.
So I checked the lists that I made and they are not added there so I remove them form the Gravity list using NANO and then re-updated the Gravity listing and it added them back :0 ?
I do have some success with blocking ads here is my full list.
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://adblock.mahakala.is/
https://someonewhocares.org/hosts/hosts
http://winhelp2002.mvps.org/hosts.txt
https://www.squidblacklist.org/downloads/dg-ads.acl
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml
https://sesipod.info/DATA_FILES/pfsense/blockytube.txt
https://sesipod.info/DATA_FILES/pfsense/personalblock.txt