0% found this document useful (0 votes)
9 views14 pages

Website Blocker Project-1

The document outlines a project to create a website blocker using Python, aimed at helping students and employees avoid distractions from certain websites during work or study hours. It describes the program's functionality, prerequisites, and the use of Python's built-in libraries to modify the hosts file for blocking specified websites. The project emphasizes the customization options available for users to tailor the blocking settings to their needs.

Uploaded by

anilp.muvvala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views14 pages

Website Blocker Project-1

The document outlines a project to create a website blocker using Python, aimed at helping students and employees avoid distractions from certain websites during work or study hours. It describes the program's functionality, prerequisites, and the use of Python's built-in libraries to modify the hosts file for blocking specified websites. The project emphasizes the customization options available for users to tailor the blocking settings to their needs.

Uploaded by

anilp.muvvala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

WEBSITE BLOCKER PROJECT

Presented By
M.Vamsi
M.Anil
S.Srinivas
S.Harsha
WEBSITE BLOCKER USING PYTHON
WEBSITE BLOCKER USING PYTHON

When we surf the internet,many unwanted websites


keep showing up.This is one the useful python
project where you can build a program that blocks
certain websites from opening.
This program is beneficial for students as well as
employees who want to study or work without any
social distractions
In some IT companies they block some couple of
websites especially social networking sites like
facebook,youtube,instagram,etc.
WEBSITE BLOCKER USING PYTHON
This is real world program which blocks certain
distracting website and also we can block ad in
between games etc during your work hours.

About the program : What we are going to in this


program is that we will pass the link of websites
which you think is distracting and the time that you
are working on your computer and program will
block those website.
WEBSITE BLOCKER USING PYTHON
Instead of using third-party applications to block
certain websites,we can develop our own custom
application to block websites of our choices and
going to develop a python script which will block the
website.
Prerequisite:
Python 3.7.3 installed
WEBSITE BLOCKER USING PYTHON
Requirments:
IDLE : Python 3.7.3
libraries :openCV, Dlib
libraries: python libraries are set of useful funct ions
that eliminate the need for writing codes from
scratch.
openCV : OpenCV provides a real-time optimized
Computer Vision library, tools, and hardware. It also
supports model execution for Machine Learning
(ML) and Artificial Intelligence.
WEBSITE BLOCKER USING PYTHON
What we are going to do:
We are going to develop python application which
will block a certain website(whatever websites we
want) during certain hours of the day.
We are going to use the python built-in libraries,
so no need to install any third party packages.
WEBSITE BLOCKER USING PYTHON
How do we do it?
Every operating system has a hosts file.Location of
the host file may be different for the different
operating system.This host file is map hostname to
IP address of the machine.
In this host file, we are going to list websites which
we want to block.
Our host file look soomething like,
WEBSITE BLOCKER USING PYTHON
WEBSITE BLOCKER USING PYTHON
As I have not mentioned, any website name in the
host file. If i try to open “ youtube .com” ,
i can do it without any problem,we will place the
screenshot(just to make sure after running our
scripts, this websites shouldn’ t open if i want to
block it.
WEBSITE BLOCKER USING PYTHON
BEFORE AND AFTER THE CODING PROCESS
WEBSITE BLOCKER USING PYTHON
We can customize the above code as per our
requirement like duration,websites,custom
messages,etc.
THANK YOU

You might also like