Crates.io | site-blocker |
lib.rs | site-blocker |
version | 0.1.2 |
source | src |
created_at | 2024-03-19 02:22:20.901263 |
updated_at | 2024-03-19 02:45:26.8868 |
description | A CLI to block sites through the systems hosts file |
homepage | |
repository | https://github.com/lilydoar/site-blocker |
max_upload_size | |
id | 1178698 |
size | 38,097 |
A CLI to block sites through the systems hosts file.
cargo install site-blocker
This CLI does not natively support Windows and has not been tested on it. However, nothing is stopping it from working since the hosts file path can be configured as an option. Try it out and create an issue if there are problems.
site-blocker [OPTIONS] <COMMAND>
Commands:
get Get blocked sites [aliases: ls]
add Add blocked sites
delete Remove blocked sites [aliases: rm]
edit Edit blocked sites in an editor
Browsers usually require their cache to be cleared before they reflect changes to the hosts file.
sudo site-blocker add www.example.com www.example2.com
INFO www.example.com added
INFO www.example2.com added
site-blocker list
www.example.com
www.example2.com
sudo site-blocker delete www.example.com
INFO www.example.com deleted
sudo site-blocker edit