Skip to main content

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


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.2.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page