Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

WEBSITE BLOCKER

This report is submitted in partial fulfilment for the project-work of Computer Science

Submitted By:

SIBA RANJAN DASH


DITESH PRASAD SAHOO
SOUMYA RANJAN BEHERA

Class: XI-A

Under the Guidance of

Dr. CHANDRALEKHA

PGT (COMPUTER SCIENCE)

KENDRIYA VIDYALAYA NO 1, CDA,CUTTACK


ODISHA, INDIA
2023-2024
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.

By implementing the "Website Blocker" project, users can foster a more


productive and focused online environment, reducing distractions and
promoting better time management. Whether used for work, study, or
personal projects, this project can serve as a valuable tool to enhance
productivity and achieve goals effectively in an increasingly digital and
interconnected world.
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
KENDRIYA VIDYALAYA NO 1 CUTTACK

CERTIFICATE OF APPROVAL

This is to certify that we have examined the project entitled


“WEBSITE BLOCKER” submitted by SIBA RANJAN DASH and
hereby accord our approval of it as a study carried out and
presented in a manner required for its acceptance in partial
fulfilment of requirements for the project-work of CLASS-XI-A
CS in Kendriya Vidyalaya No 1 Cuttack for which it has been
submitted. It is to be understood that by this approval that the
undersigned do not necessarily endorse or approve any
statement made, opinion expressed or conclusion drawn
therein but approve the project only for the purpose for which
it is submitted.

Internal Examiner External Examiner


Name: Name:
Designation: Designation:

Signature: Signature:
ACKNOWLEDGEMENT

I have taken efforts in this project. However, it would not


have been possible without kind support and help of many
individuals and organisation. I would like to extend my
sincere thanks to all of them.

I am extremely indebted to Dr. Chandralekha, TGT,


department of computer science, and engineering, KVS,
for their valuable suggestion constant support throughout
our entire project. And thanks to my principal sir, who
gave the opportunity to do this project.

I also express gratitude towards my parents for their kind


co-operation and encouragement which helped me in
completing this project. My thanks and appreciation also
go to my friends in developing the project who have
helped me out with their abilities.

Siba Ranjan Dash

KENDRIYA VIDYALAYA NO.1 CTC


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 OPERATIONAL RESEARCH


FEASIBILITY FEASIBILTY FEASIBILITY

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
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
FLOW CHART
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 the

specified time range.


 If yes, open the host file and add blocked

websites.
 If no, open the host file and remove blocked

websites.
 Sleep for 3 seconds.

6. In the main block, call block_websites with the


specified time range (9 AM to 9 PM).

You might also like