An extremely light-weight website blocker.
Why do I need a heavy-weight browser extension or clunky service running on my machine to block a few websites? I think a website blocker should be something that:
- Blocks the sites that I want to block (for me, domains and subdomains are sufficient)
- Can be turned on and off with ease
- Is light-weight
- Is open-source (I want to know what is happening under the covers)
easyblock is designed with these criteria in mind.
To use easyblock, simply put an .easyblock file in your home directory (~) with a domain on each line.
Here is an example configuration:
www.google.com
news.google.com
www.amazon.com
www.instagram.com
www.facebook.com
www.reddit.com
Then, to start blocking, run:
sudo python3 easyblock.py onTo stop blocking, run:
sudo python3 easyblock.py offIt's really that easy!
- macOS Catalina 10.15.4
- Ubuntu 20.04