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.1.2.tar.gz
(3.2 kB
view details)
File details
Details for the file hostscli-0.1.2.tar.gz.
File metadata
- Download URL: hostscli-0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c24c5df53e1e726dd824d4312cd0bdd4ed25d0cb6307c9070ed89e2fa4652a5d
|
|
| MD5 |
c08325211c1177991de8c0e8af8c3756
|
|
| BLAKE2b-256 |
e67e3a2a1a1605bc5c885e97b8eddb5293ac78671f04d8f130da9f830b3499f9
|