Create using StevenBlack/hosts
python3 UpdateHostsFile.py --auto --extensions fakenews gambling porn --output "/your/path/hosts/"
- Right mouse click on Notepad icon then click on
Run as administrator - File → Open... then insert the path
C:\windows\system32\drivers\etc\hosts - Add a new line and copy-paste the entire content of HOSTS.txt
- Save
- Reboot
- Open HOSTS.txt and add a newline to the beginning
- Save and close HOSTS.txt
- Open Windows PowerShell
- Run this command in Windows PowerShell:
Get-Content HOSTS.txt | Add-Content "C:\windows\system32\drivers\etc\hosts"
- Open HOSTS.txt and add a newline to the beginning
- Save and close HOSTS.txt
- Right mouse click on Cygwin icon then click on 'Run as adminstrator`
cdto where HOSTS.txt lives- Run this command in Cygwin:
cat HOSTS.txt >> /cygdrive/c/Windows/System32/drivers/etc/hosts - Reboot
The steps in Cygwin should be similar on in any POSIX compatible system running on Windows.
- Open the terminal
- Type
sudo vim /etc/hosts - Add a new line and copy-paste the entire content of HOSTS.txt
- Save
- Reboot
- Install DNS66
- Open DNS66
- Click on HOSTS button to select the "HOSTS" section of the APP
- Click on the + floating button on the lower-right corner
- Insert a title of your choice and the following url: https://raw.githubusercontent.com/harrypython/hosts/master/hosts
- Save the filter you created by clicking the check mark on the top-right corner
- Press the refresh button on the top-right corner
- Go back to the "START" section of the APP and start it
- You should notice a symbol indicating an active VPN on your Android system