- You can add as many Websites as you want in the list named 'website_list' in the website_blocker.py file and all that sites will be blocked for specified time period.
- This script needs to be run with administrator permissions. so u need to use 'sudo' in case of linux.
- Once you run this script it will make some changes in your host file which is a system file. and it will remain unchanged if you interrupt the process.
- To undo these changes edit the the line no. 10 and replace 16 with a time less than current time whatever it is and run the script once again and every thing will be reverted to normal.
-
Notifications
You must be signed in to change notification settings - Fork 1
ar1998/website-blocker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple python script to block desired websites during working hours
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published