forked from StevenBlack/hosts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
1. Ensure all the dependancies have been installed: `pip3 install --user -r requirements.txt` | ||
2. Review the `whitelist` file to ensure all domains you want to whitelist are present | ||
3. Run the following command: `python3 updateHostsFile.py --replace --skipstatichosts --extensions porn --whitelist whitelist` | ||
4. Upload outputted `hosts` file to `/etc/config/custom_hosts/` in the router e.g. `scp hosts [email protected]:/etc/config/custom_hosts/porn` | ||
4. Upload outputted `hosts` file to `/etc/config/custom_hosts/` in the router e.g. `scp hosts [email protected]:/etc/config/custom_hosts/porn` (you made need the `-O` flag - upper case `o` - to tell the sftp client to fall | ||
back to an older protocol to connect to the server successfully) | ||
5. Then run `/etc/init.d/dnsmasq restart` | ||
6. Check in the logs to see that its loaded it ok by running `logread` and checking for a line like `Sat Apr 30 08:50:43 2022 daemon.info dnsmasq[7703]: read /etc/config/custom_hosts/porn - 142886 addresses` | ||
6. Check in the logs to see that its loaded it ok by running `logread` and checking for a line like `Sat Apr 30 08:50:43 2022 daemon.info dnsmasq[7703]: read /etc/config/custom_hosts/porn - 142886 addresses` |