Need to focus but keep getting distracted by random websites?
This tool helps you easily block them via simply editing hosts
file. Plain Python, no installation of anything additional needed.
Field tested during university! 🔥
- Python 3.6 or newer
- Admin/root privileges (required to modify hosts file)
- Windows or Linux
- Clone the repo
git clone https://github.com/mcjmk/hostsPageBlocker.git
cd hostsPageBlocker
- Using terminal with admin rights do:
python main.py
- Answer prompt:
Example:
Number of pages: 1
Enter URL: example.com
URLs have been successfully blocked!
This project is licensed under the MIT License.