- Ensure all the dependancies have been installed:
pip3 install --user -r requirements.txt - Review the
whitelistfile to ensure all domains you want to whitelist are present - Run the following command:
python3 updateHostsFile.py --replace --skipstatichosts --extensions porn --whitelist whitelist - Upload outputted
hostsfile to/etc/config/custom_hosts/in the router e.g.scp hosts root@192.168.1.1:/etc/config/custom_hosts/porn(you made need the-Oflag - upper caseo- to tell the sftp client to fall back to an older protocol to connect to the server successfully) - Then run
/etc/init.d/dnsmasq restart - Check in the logs to see that its loaded it ok by running
logreadand checking for a line likeSat Apr 30 08:50:43 2022 daemon.info dnsmasq[7703]: read /etc/config/custom_hosts/porn - 142886 addresses