hostscli is a CLI tool to block / unblock websites using /etc/hosts
Project description
A CLI tool to block / unblock websites using /etc/hosts. Super simple and easily extendable.
Installation
pip install -U hostscli
Usage
*** Please note that we require sudo permissions to change /etc/hosts file ***
To block facebook:
sudo hostscli block facebook
To unblock facebook:
sudo hostscli block facebook
To list supported websites:
hostscli websites
More websites?
If you need to add more websites, just create a <website>.py file in hostscli/websites/ directory with list of domains declared as variable DOMAINS. Please look at hostscli/websites/facebook.py file for reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hostscli-0.0.6.tar.gz
(2.9 kB
view hashes)