Website Blocker
Website Blocker
This report is submitted in partial fulfilment for the project-work of Computer Science
Submitted By:
Class: XI-A
Dr. CHANDRALEKHA
1|Page
KENDRIYA VIDYALAYA NO 1 CUTTACK
----------------------------------------------------------------------------------------------------------------
CERTIFICATE OF RECOMMENDATION
This is to certify that the project entitled “WEBSITE BLOCKER”
submitted by SIBA RANJAN DASH to Kendriya Vidyalaya No 1
Cuttack, Odisha, in partial fulfilment of requirements for the
project-work of CLASS-XI-A CS in Kendriya Vidyalaya No 1
Cuttack is a bonafide record of work carried out by him under
our supervision and guidance during the academic year 2023-
2024.
Date: 22/01/2024
Principal
Kendriya Vidyalaya No. 1
Cuttack
CDA, Odisha, India
2|Page
KENDRIYA VIDYALAYA NO 1 CUTTACK
CERTIFICATE OF APPROVAL
Internal Examiner
Name:
Designation:
Signature:
3|Page
ABSTRACT:
The "Website Blocker" is a Python project designed to enhance productivity
and focus by preventing access to distracting or time-wasting websites. In
today's digital world, the abundance of online content can be a significant
obstacle to maintaining productivity and concentrating on essential tasks.
This project aims to address this issue by providing a simple yet effective
solution to block access to specific websites during designated periods.
The website blocker utilizes Python and operates by modifying the system's
host file to redirect unwanted website URLs to a non-functional IP address.
Users can customize the list of websites they wish to block and set specific
time intervals when the blocking mechanism should be active. By doing so,
the tool enables users to establish productive work routines, limit distractions,
and cultivate a more focused and efficient workflow.
Key features of the "Website Blocker" project include:
User-defined website list: Users can create and modify a list of websites they
want to block, ensuring personalized control over the blocked content.
Customizable blocking schedule: Users can set specific time periods for
website blocking, such as during work hours or study sessions, promoting a
balanced approach to online usage.
Cross-platform functionality: The project is designed to work on multiple
operating systems, making it accessible to a broader user base.
Minimalist interface: The project offers a straightforward and user-friendly
interface, making it easy to configure and operate without any technical
expertise.
4|Page
ACKNOWLEDGEMENT
Introduction 07
Feasibility study 08
FLOW CHART 10
ALGORITHM 11
6|Page
INTRODUCTION
7|Page
FEASIBILITY STUDY
Considering the requirements, a full-scale feasibility study was
undertaken for testing the possibility of computerization. The
feasibility study carried out under the following three areas
Technical Feasibility
We are using Personal computers, laptops and as per Graphical
user interface i.e. Microsoft Windows. The system has standard
software like Sublime text editor (version-4), and notepad (865
bytes) for host path.
For sublime txt, 2 modules-datetime and time, and python
functions
Operational Feasibility
The project manager analyzes and make an improvement on
code according to the user need, and we can make the payment
according how the user make demand.
The project manager prior judgement was whether the installed
tool will be cost effective or not.
And it has to analyze whether the tool can physically move
within the site and can be used by anyone.
Research Feasibility
By conducting this project, we can block the websites that we
need. After able to that, we focus on how we can make the
websites blocked with in a time range, period and that’s the
main focus in this research or project
8|Page
SYSTEM REQUIREMENT
SPECIFICATION
In all about only one data file needs to create for various
operations covered under study to get the required outputs
and perform desire function.
Hardware Requirements
We would require laptop or desktop with pen drive, or
floppy disk if we want to move the data file physically.
Software Requirements
The software required for the system would be;
Operating system: Microsoft Windows version 7,8,10
a or 11
Text Editor: Sublime Text version 4
Compilers: Python
Module: datetime and time
Host Path: Using Note pad
9|Page
FLOW CHART
10 | P a g e
ALGORITHM
1. Import necessary modules (time,
datetime, os).
2. Define the list of websites to block and
paths/constants for host files.
3. Determine the operating system and
set the default host file path
accordingly.
4. Define a function block_websites
that continuously runs.
5. Inside the function:
Check if the current time is within
blocked websites.
If no, open the host file and remove
blocked websites.
Sleep for 3 seconds.
11 | P a g e