rust cli app for managing sites blocked via the hosts file
Rust
96
79 commits
updated Mar 29, 2020
Simple terminal interface for blocking websites via the /etc/hosts file.

When you unblock or a remove a domain you'll be asked to enter a mildly annoying random passphrase to give you a chance to reconsider if you really want to go read reddit.
Must be run as sudo as it needs to write to /etc/hosts.
Controls
Command line options:
-b block all-u unblock all (requires typing the passphrase)-h help message (showing these options)If you're on linux on an x86_64 processor you can download a binary release here: https://github.com/cgag/hostblock/releases.
The binary is fully statically linked against musl-libc, so it should work on any distro.
You'll need to have rustc and cargo installed, you can download them here: https://www.rust-lang.org/install.html. Note that cargo is bundled with rust.
- clone repo
- run `cargo build --release`
- sudo ./target/release/hostblock
You should probably move the binary to somewhere on your path.
Rust
100.0%
rust cli app for managing sites blocked via the hosts file
Rust
96
79 commits
updated Mar 29, 2020
Simple terminal interface for blocking websites via the /etc/hosts file.

When you unblock or a remove a domain you'll be asked to enter a mildly annoying random passphrase to give you a chance to reconsider if you really want to go read reddit.
Must be run as sudo as it needs to write to /etc/hosts.
Controls
Command line options:
-b block all-u unblock all (requires typing the passphrase)-h help message (showing these options)If you're on linux on an x86_64 processor you can download a binary release here: https://github.com/cgag/hostblock/releases.
The binary is fully statically linked against musl-libc, so it should work on any distro.
You'll need to have rustc and cargo installed, you can download them here: https://www.rust-lang.org/install.html. Note that cargo is bundled with rust.
- clone repo
- run `cargo build --release`
- sudo ./target/release/hostblock
You should probably move the binary to somewhere on your path.
Rust
100.0%