block
Version, currently master branch1 version
- master branchlatestNov 12, 2018
github.com/Flaque/block
A command line tool for blocking websites
Installation
# Add this to your shard.yml
dependencies:
block:
github: Flaque/block
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.24.2- License
- MIT
- Author
- Flaque
- Target
blockfrom src/block.cr
Dependencies
Runtime Dependencies
- admiral*github: jwaldrip/admiral.cr
README
block
A little tool for automatically blocking websites and urls from the command line.
It assumes there's a hostfile at /etc/hosts. If you're on macOS or most linux
distros, then this should likely be the case for you already.
Warning
Block is more/less meant to be a one-way tool. If you want to remove something from your block list, you'll need to open up your /etc/hosts file and remove the line at the the end of the file yourself. There is no unblock xyz.com.
Usage
$ block distractingsite.com
Install
git clone https://github.com/Flaque/block.git;
cd ./block;
make;
sudo mv ./block /usr/local/bin/block;
Contributing
- Fork it ( https://github.com/flaque/block/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Flaque Flaque - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 12, 2018
- Crystal
0.24.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Flaque/block
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1