Too Long; Didn't Read
A Simple Guide to Building a Website Blocker in Python explains how to block certain sites that distract you during working hours. We use time and Datetime Module only which comes by default with the Python Standard Library therefore you don’t need to install anything. We will add website URLs which are mapped to localhost thus preventing from accessing the real site. Instead of adding 'www.facebook.com' we will add '127.00.0.1 www.facebook.' We need to add those site to host file during working. hours and removing them immediately when it’s go home time.