Skip to content

mcjmk/hostsPageBlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hostsPageBlocker

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! 🔥

Prerequisites

  • Python 3.6 or newer
  • Admin/root privileges (required to modify hosts file)
  • Windows or Linux

Getting started:

  1. Clone the repo
git clone https://github.com/mcjmk/hostsPageBlocker.git
cd hostsPageBlocker
  1. Using terminal with admin rights do:
python main.py
  1. Answer prompt:

Example:

Number of pages: 1
Enter URL: example.com
URLs have been successfully blocked!

License

This project is licensed under the MIT License.

About

Easily block distracting websites adding rules to hosts file. Plain Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages