hostblock

rust cli app for managing sites blocked via the hosts file

  • Owner: cgag/hostblock
  • Platform:
  • License:: GNU Affero General Public License v3.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Simple terminal interface for blocking websites via the /etc/hosts file.

Hostblock demo

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

  • i - add a new domain
  • j/k - down, up
  • J/K - goto bottom, goto top
  • d - delete selected
  • space - toggle whether or not selected domain is blocked
  • q - Quit current mode, quits app if in normal mode.
  • h - View help.

Installation:

Linux x86_64 binary

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.

Building from source

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.

Main metrics

Overview
Name With Ownercgag/hostblock
Primary LanguageRust
Program languageRust (Language Count: 1)
Platform
License:GNU Affero General Public License v3.0
所有者活动
Created At2015-08-14 22:13:05
Pushed At2020-03-29 21:25:34
Last Commit At2020-03-29 17:25:30
Release Count3
Last Release Namev1.1 (Posted on 2015-09-17 18:10:49)
First Release Namev1.0 (Posted on 2015-09-14 19:18:48)
用户参与
Stargazers Count97
Watchers Count5
Fork Count7
Commits Count79
Has Issues Enabled
Issues Count4
Issue Open Count1
Pull Requests Count8
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private