Many of us struggle to focus now days, easily distracted by Social media and some sites on internet which dramatically affecting our productivity.

On this Tutorial you will learn and build your own website blocker to block certain selected sites that distract you during working hours .

Requirements

We are going to use time and Datetime Module only which comes by default with the Python Standard Library therefore you don’t need to install anything.

How do we block sites ?

On every operating system has a hosts file and it’s on this site where we are going to add list of website we want to block.

#python

Build a website blocker in Python in few minutes
2.70 GEEK