hostscli is a CLI tool to block / unblock websites using /etc/hosts


Keywords
hostscli, hosts, /etc/hosts, block, unblock, websites, ad-blocker, cli, cli-app, command-line, commandline, firewall, porn-filter, python, python-client, python-library
License
MIT
Install
pip install hostscli==1.1.2

Documentation

HostsCLI Docs

A CLI tool to block / unblock websites using /etc/hosts. Super simple and easily extendable. Also block Ads, Tracking & Malware sites.

Links

Docs Link http://hostscli.readthedocs.io/
GitHub Link https://github.com/dhilipsiva/hostscli
PyPI Link https://pypi.python.org/pypi/hostscli

Badges

Docs Documentation Status
GitHub
Tests
Thanks Say thanks :)

Docs & Reference

.. automodule:: hostscli
    :members:
    :undoc-members:
    :show-inheritance:


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

Credits

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