https://github.com/flaque/block
A command line tool for blocking websites
https://github.com/flaque/block
Last synced: 2 months ago
JSON representation
A command line tool for blocking websites
- Host: GitHub
- URL: https://github.com/flaque/block
- Owner: Flaque
- License: mit
- Created: 2018-06-01T20:01:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T18:57:21.000Z (over 6 years ago)
- Last Synced: 2025-01-20T10:13:59.385Z (4 months ago)
- Language: Crystal
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```sh
$ block distractingsite.com
```## Install
```sh
git clone https://github.com/Flaque/block.git;
cd ./block;
make;
sudo mv ./block /usr/local/bin/block;
```## Contributing
1. Fork it ( https://github.com/flaque/block/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request## Contributors
- [Flaque](https://github.com/flaque) Flaque - creator, maintainer