Skip to content

A simple python script to block desired websites during working hours

Notifications You must be signed in to change notification settings

ar1998/website-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

website-blocker

  • A simple python script to block selected websites for a given range of time period.

  • 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.

About

A simple python script to block desired websites during working hours

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages