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!
- You can do this using cron. Run "sudo apt-get install cron" if you dont have it installed already.
- 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.
- Once you've opened cron with sudo privillages, add the following line at the end of the file.
- @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.
- Once you're done, just save it and exit. And that's it. Done!
- Please refer to this video for the tutorial.