Hostsctl.sh allows you to control your /etc/hosts easily. you can block ads, porn, social networks with one command.
Original hostsctl original
To install it right away, type:
sudo curl -L https://git.io/vy5xx -o /usr/local/bin/hostsctl sudo chmod +x /usr/local/bin/hostsctl
or download hostsctl.sh and run it.
If you want bash-completions for hostsctl.
- Linux (Archlinux)
sudo cp hostsctl.bash-completion /usr/share/bash-completion/completions/hostsctl
If you want to add your platform, please do so.
sudo hostsctl update
after the installation to update the hosts file.
- Before you can start using
hostsctlyou need to select hosts file.
List of of hosts files
- Place the hosts file url in the
hostsctl update to download the hosts file.
sudo hostsctl enable bigsite.tld # Now you have access to this site sudo hostsctl disable bigsite.tld # Now the site pointed to 0.0.0.0
Any collaboration is welcome!
- Steven Black hosts repo for inspiring me to create this.