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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?