---
title: "Website Blocker"  
description: "Website Blocker"  
author: "Anonymous User"  
published: 2018-06-29  
updated: 2018-07-02  
canonical: https://www.mindstick.com/forum/34565/website-blocker  
category: "python"  
tags: ["python-3.4"]  
reading_time: 1 minute  

---

# Website Blocker

What is [Website](https://www.mindstick.com/articles/13110/why-copywriting-is-crucial-for-new-website-build) Blocker? [explain](https://www.mindstick.com/forum/157854/what-is-system-debugging-explain-some-system-debugging-tools-used-in-modern-computer-systems) it by Using [Python](https://www.mindstick.com/articles/75378/simple-yet-useful-tips-when-using-python) ?

\

## Replies

### Reply by Prakash nidhi Verma

Blocks distracting website occur like Facebook,Youtube during your work hours. This is real world program. websites which is distracting and your computer and program will block those website on your working hour.

![Website Blocker](https://www.mindstick.com/mindstickforums/3dc1ac9d-c214-46fa-9d33-daf80cba3466/images/0656dbda-8a95-4ce7-b8bf-d3ab846422a0.png)1- Program Architecture: Every system have host file whether it is mac, windows or Linux.

2- Working of host file: hostnames to IP addresses is mapped when we do map our hostnames of websites to our localhost address in this program. In file handling manipulation we will write the hostname in hosts.txt and remove the lines after your working hours by using python.

![Website Blocker](https://www.mindstick.com/mindstickforums/3dc1ac9d-c214-46fa-9d33-daf80cba3466/images/1630fdbd-2d3e-4f2a-b164-394895a03263.png)

![Website Blocker](https://www.mindstick.com/mindstickforums/3dc1ac9d-c214-46fa-9d33-daf80cba3466/images/0f5ed896-4950-4d75-beee-072b9243dd19.png)

\


---

Original Source: https://www.mindstick.com/forum/34565/website-blocker

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
