Downloading, parsing and adding custom lists to the adlists.list on Pi-hole
I didn't make this, just tweaked it to make it work for me and for any future installation. It's a work in progress.
- Clone repo
- Create a directory under
/var/www/html/
to place your future host list. For examplelists
- Create
adlists.list
on your pi-hole, usesudo cp /etc/pihole/adlists.default /etc/pihole/adlists.list
- Edit the newly created
adlists.list
with your favorite editor and addhttp://pi.hole/lists/adblock.hosts
at the end. If you want you can make changes and add other lists by uncommenting the contents. Any changes will be permanent and will not be overwritten on future pi-hole updates. - From your repo just run
update_adlists
- automate procedure
- clean up scripts