Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.1 KB

README.md

File metadata and controls

22 lines (18 loc) · 1.1 KB

website_blocker

A simple python tool to get rid of the distracting websites during your work hours. Just execute this process in the background and forget about distractions!

Here's how to run this as a background process :

For Linux/Mac

  1. You can do this using cron. Run "sudo apt-get install cron" if you dont have it installed already.
  2. Open your terminal and type sudo crontab -e. You might be prompted to select an editor if you're using cron for the first time. So just select any that you're comfortable with.
  3. Once you've opened cron with sudo privillages, add the following line at the end of the file.
  4. @reboot python3 /home/user/Desktop/websiteBlocker/website_blocker.py Please note that the absolute path of your website_blocker.py file might be different so please change it accordingly.
  5. Once you're done, just save it and exit. And that's it. Done!

For Windows

  1. Please refer to this video for the tutorial.