hostblock

rust cli app for managing sites blocked via the hosts file

  • 所有者: cgag/hostblock
  • 平台:
  • 许可证: GNU Affero General Public License v3.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者cgag/hostblock
主编程语言Rust
编程语言Rust (语言数: 1)
平台
许可证GNU Affero General Public License v3.0
所有者活动
创建于2015-08-14 22:13:05
推送于2020-03-29 21:25:34
最后一次提交2020-03-29 17:25:30
发布数3
最新版本名称v1.1 (发布于 2015-09-17 18:10:49)
第一版名称v1.0 (发布于 2015-09-14 19:18:48)
用户参与
星数97
关注者数5
派生数7
提交数79
已启用问题?
问题数4
打开的问题数1
拉请求数8
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?