This is a custom regex filter file for use with Pi-hole v4+ (FTLDNS).
There are also some optional regex filters separate to the main installer that can be added manually (if desired):
All commands will need to be entered via Terminal (PuTTY or your SSH client of choice) after logging in and Python 3.6+ is required.
curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/install.py | sudo python3
curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/uninstall.py | sudo python3
The following instructions will create a cron job to run every monday at 02:30 (adjust the time to suit your needs):
-
Edit the root user's crontab (
sudo crontab -u root -e
) -
Enter the following:
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
30 2 * * 1 /usr/bin/curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/install.py | /usr/bin/python3
- Save changes
If this script is the only thing you've added to the root user's crontab, you can run:
sudo crontab -u root -r
Otherwise, run:
sudo crontab -u root -e
and remove the three lines listed above in the install instructions.