- 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.
uditseven / website-blocker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ar1998/website-blocker
A simple python script to block desired websites during working hours