A CLI tool to block / unblock websites using /etc/hosts. Super simple and easily extendable. Also block Ads, Tracking & Malware sites.
Docs Link | https://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
https://www.malwaredomainlist.com/hostslist/hosts.txt
https://winhelp2002.mvps.org/hosts.txt
https://someonewhocares.org/hosts/hosts
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext