A CLI tool to block / unblock websites using /etc/hosts. Super simple and easily extendable. Also block Ads, Tracking & Malware sites.
Docs Link | http://hostscli.readthedocs.io/ |
---|---|
GitHub Link | https://github.com/dhilipsiva/hostscli |
PyPI Link | https://pypi.python.org/pypi/hostscli |
Docs | |
---|---|
GitHub | |
Tests | |
Thanks |
.. automodule:: hostscli :members: :undoc-members: :show-inheritance:
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
Here are some of the list where I borrowed domains from:
https://github.com/jmdugan/blocklists
http://www.malwaredomainlist.com/hostslist/hosts.txt
http://winhelp2002.mvps.org/hosts.txt
http://someonewhocares.org/hosts/hosts
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext