Blocklists
These are URL lists which can be used to block ads, services, and objectionable content. These are just the lists I currently use on my Pi-Hole server.
Compiling
It may be advantageous to compile these lists into one master list which you then host and point your Pi-Hole towards. I do this with a simple web server on my home network.
Steps
- First, add all of the lists below (or your favorites) to single text file such as
source.txt. - Then run the following command from the same directory.
xargs -n 1 curl -s < source.txt > master.txt - The result should be a single
master.txtfile which you can host from your web server and point Pi-Hole toward.
You could get real fancy and setup a cronjob on your web server to run every week to compile an updated file.
xargs -n 1 curl -s < source.txt > master.txt && grep -v '^$' master.txt > master_block_list.txt
You'd then only need to point Pi-Hole toward http://IPADDRESS_OF_YOUR_WEBSEVER/master_block_list.txt
My cronjob command looks like this:
xargs -n 1 curl -s < /var/www/html/homeweb/configs/source.txt > /var/www/html/homeweb/configs/master.txt && grep -v '^$' /var/www/html/homeweb/configs/master.txt > /var/www/html/homeweb/configs/master_block_list.txt && rm /var/www/html/homeweb/configs/master.txt
It runs daily at 03:30.
Local Hosts
Another method I like to use is to setup cronjobs on network laptops which will download the compiled list to replace the local /etc/hosts file. This may seem redundant but it serves the laptop well
when it is off the network. Example: My child's laptop leaves the safety of my home network but can still enjoy much the same level of blocked sites on another network.
The Lists
- https://raw.githubusercontent.com/dom404/blockAI-URLs/main/combined_AI_list.txt
- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
- http://sysctl.org/cameleon/hosts
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/fademind-add.dead/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/fademind-add.spam/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/kadhosts/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/matomo.org-spammers/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/mitchellkrogza-badd-boyz-hosts/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/pgl.yoyo.org/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/someonewhocares.org/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/spam404.com/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/stevenblack/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/winhelp2002.mvps.org/list.txt
- https://raw.githubusercontent.com/hectorm/hmirror/master/data/zerodot1-coinblockerlists-browser/list.txt
- https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
- https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
- https://www.stopforumspam.com/downloads/toxic_domains_whole.txt
- https://raw.githubusercontent.com/chadmayfield/pihole-blocklists/master/lists/pi_blocklist_porn_all.list
- https://blocklistproject.github.io/Lists/tiktok.txt
- https://hostfiles.frogeye.fr/firstparty-trackers-hosts.txt
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
- https://raw.githubusercontent.com/mhhakim/pihole-blocklist/master/porn.txt
- https://blocklistproject.github.io/Lists/alt-version/porn-nl.txt
- https://blocklist.sefinek.net/generated/v1/0.0.0.0/test.txt
- https://blocklist.sefinek.net/generated/v1/0.0.0.0/sites/lgbtqplus.txt
- https://blocklist.sefinek.net/generated/v1/0.0.0.0/sites/lgbtqplus2.txt
- https://blocklist.sefinek.net/generated/v1/0.0.0.0/social/tiktok.txt
- https://blocklist.sefinek.net/generated/v1/0.0.0.0/sites/booth.pm.txt
- https://raw.githubusercontent.com/dom404/blockAI-URLs/main/combined_AI_list.txt