Last active
October 19, 2021 10:53
-
-
Save marvin/69ac98b9e174f2a370cc9bae083d53de to your computer and use it in GitHub Desktop.
update hosts file on ubuntu with StevenBlack Hosts-List for porn+gamblin
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
#!/bin/bash | |
# uses gambling+porn from https://github.com/StevenBlack/hosts | |
# can be ran via cron | |
cd ~ | |
wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts -O /tmp/hosts | |
sudo sed -i '/#DELETE/Q' /etc/hosts | |
echo '#DELETE' | sudo tee -a /etc/hosts | |
cat /tmp/hosts |sudo tee -a /etc/hosts | |
sudo service network-manager restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment