Small utility that syncronizes the hosts.txt file to the /etc/hosts file.
Script installs the
A snapshot of the
/etc/hostsis stored inside
A file named
latest.txtis created with the contents of the newly created
.bakfile from #2
brew install git
sudo apt-get install git
sudo yum install git
From your command line application like
iTerm2 run the following:
git clone https://github.com/michaeltrimm/hosts-blocking.git cd hosts-blocking sudo ./run.sh --install
Show the help menu...
sudo ./run.sh --help
Copy blocking hosts data to your hosts file
sudo ./run.sh --install
Revert to the previous state of your hosts file
sudo ./run.sh --undo
Revert your hosts file to a stored backup by name
This software is provided "as-is" and comes with absolutely no warranty or guarantee. Please use at your own discretion. No contributor to this project shall be responsible for any issues caused as a result of executing this software. That being said, the software is fully open-source, so have at it... look it over, understand it, and determine on your own merits whether or not you should use it.