paint-brush
A Simple Guide to Building a Website Blocker in Pythonby@kalebujordan
2,636 reads
2,636 reads

A Simple Guide to Building a Website Blocker in Python

by Kalebu Jordan 3mOctober 5th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - A Simple Guide to Building a Website Blocker in Python
Kalebu Jordan  HackerNoon profile picture
Kalebu Jordan

Kalebu Jordan

@kalebujordan

I'm a Mechatronics engineer | Pro Python Developer | AI Enthusiast

Learn More
LEARN MORE ABOUT @KALEBUJORDAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kalebu Jordan  HackerNoon profile picture
Kalebu Jordan @kalebujordan
I'm a Mechatronics engineer | Pro Python Developer | AI Enthusiast

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Biztoolspro