0% found this document useful (0 votes)
7 views

Python

The document is a teacher evaluation sheet for a micro-project titled 'Website Blocker' completed by student Chordiya Siddhi Rajesh in the Computer Technology program. It outlines the project's objectives, course outcomes, evaluation criteria, and methodology for creating a Python-based application to block specified websites. The project aims to enhance programming skills while addressing networking concepts and file handling.

Uploaded by

siddhijain522
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Python

The document is a teacher evaluation sheet for a micro-project titled 'Website Blocker' completed by student Chordiya Siddhi Rajesh in the Computer Technology program. It outlines the project's objectives, course outcomes, evaluation criteria, and methodology for creating a Python-based application to block specified websites. The project aims to enhance programming skills while addressing networking concepts and file handling.

Uploaded by

siddhijain522
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Teacher Evaluation Sheet

Name of Student: Chordiya Siddhi Rajesh


Enrollment No: 2200790138
Name of Program: Computer Technology Semester:- VI
Course Title: Programming with Python Course Code: -22616
Title of the Micro Project: Website Blocker

Course Outcomes Achieved:

1. Understanding Network Basics: Students will gain an understanding of how networks


function, including concepts such as IP addresses, DNS resolution, and HTTP requests.
2. File Handling: Utilizing file handling concepts in Python to read and write configuration files
containing the list of blocked websites.
Evaluation as per Suggested Rubric for Assessment of Micro-Project:

Sr.
Characteristic to be Poor Average Good Excellent
No.
assessed (Marks 1-3) (Marks 4-5) (Marks 6 - 8) (Marks 9-10)
(A) Process and Product Assesssment (Convert above total marks out of 6 marks)
1 Relevance to the Course
Literature Survey /
2
Information Collection
Completion of the Target as
3
per project proposal
Analysis of data and
4
representation
5 Quality of Prototype / Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 marks)
8 Presentation
9 Viva
Micro – Project Evaluation Sheet:
Process Assessment Product Assessment
Part Project Part Individual Total
A – project Methodology B – Project Presentation / Marks 10
Name of Student Proposal (2 marks) Report / Working Viva (4 marks)
(2 marks) Model(2 marks)

Chordiya Siddhi
Rajesh
Comments / Suggestions about team work / leadership / inter – personal communication (if any)

Any Other Comment

Name and designation of the faculty Member: Mr.G.M.Lodha Signature


SHRI H. H. J. B POLYTECHNIC,
CHANDWAD-423101 (Nashik)

MICRO PROJECT
Academic year 2023-24

TITLE OF PROJECT
Website Blocker

Program: Computer Technology Program Code : CM

Course: Programming With Python Course code: 22616


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

Sr.No. Name of Student Roll No Enrollment No Seat No


1. Chordiya Siddhi Rajesh 17 2200790138

CERTIFICATE
This is to certify that: 1) Chordiya Siddhi Rajesh
of 6th Semester of Diploma in Computer Technology of Institute, SHHJB POLYTECHNIC,
CHANDWAD (Code: 0079) has completed the Micro-Project satisfactorily in Subject
Programming With Python (22616)for the academic year 2024- 2025 as prescribed in the
curriculum.

Place: CHANDWAD

Date: / /2025

Subject Teacher Head of the Department Principal


(Mr.G.M.Lodha) (Mr.P.R.Sali) (Dr. V.A.Wankhede)
INDEX

SR_NO. CONTENT PAGE NO.

Part A

1.0 Brief Introduction 1

2.0 Aim of Micro Project 1

3.0 Action Plan 1

4.0 Resources Required 1

Part B 2

1.0 Brief Description 2

2.0 Aim of Micro Project 2

3.0 Course Outcome Integrated 2

4.0 Actual Procedure Followed 2

5.0 Actual Resource Used 3

6.0 Outputs of the Micro-projects 5

7.0 Skill Developed 5

8.0 Applications of this Microproject 6


PART A-Plan

Title of micro-project : Website Blocker

1.0 Aim/Benefits of the Micro-Project: The goal of the Website Blocker python project is to
ban certain websites from being accessed from any device. This project will assist the user in avoiding
distractions by preventing them from accessing web pages on their smartphone.The user may input
numerous websites to block in this Python Website Blocker Project, and then hitting the block button
will verify the condition that if the website has already been banned, it will print 'already blocked',
else it will block all of the websites and print 'blocked'.

2.0 Course Outcomes Addressed-

a) Display message on screen using Python script on IDE.


b) Develop python program to demonstrate use of operators.
c) Perform operations on data structures in python.
d) Develop functions for given problem.
e) Design classes for given problem.
f) Handle Exception

3.0 Action Plan-

Planned Start Planned Finish


Sr no. Details of activity
Date Date
1. Finalization of topic
2. Preparation of Abstract
3. Collection of data
4. Preparation of concept
5. Seminar / Presentation
6. Submission of Micro Project

4.0 Resources Required:


Sr.No Name of Resource/Material Specification Quantity Remarks
1. Computer (Desktop/Laptop) i3,RAM 2GB 1
2. Microsoft office word 2010 1
3. Books Python 1
4. Websites https://www.studyto 1
night.com/python-
projects/python-
project-for-website-
blocker
5. Softwares Python
IDLE 1
PART B-Plan

Title of micro-project: Website Blocker


1.0 :- Brief Description: Website Blocker is a program that blocks access to
websites either permanently or on a regular basis. We can ban all websites from
undesirable categories to use the internet securely.The goal of the Website Blocker
python project is to ban certain websites from being accessed from any device. This
project will assist the user in avoiding distractions by preventing them from
accessing web pages on their smartphone.

2.0 Aims/Benefits of Micro Project:

The aim of a website blocker in Python is to help you control which websites you or others can
access on your computer. It's like setting up a virtual fence around certain websites to prevent
yourself or others from visiting them.If you want to focus on work or study without getting
distracted by social media or gaming sites, you can block those sites during specific times.If
you're a parent and want to make sure your kids don't access inappropriate content online, you
can block those types of websites.

3. Course Outcomes Achieved:


a) Develop python program to demonstrate use of operators.
b) Perform operations on data structures in python.
c) Develop functions for given problem.
d) Design classes for given problem.
e) Handle Exception

4. 0 Resources Required:

Sr.No Name of Specification Quantity Remarks


Resource/Material
1. Computer I3,RAM 2GB 1
(Desktop/Laptop)
2. Microsoft office 2010 1
word
3. Books PYTHON 1
4. Websites https://www.studytonight.com/python- 1
projects/python-project-for-website-
blocker
5. Softwares Python IDLE 1
5.0 brief Description:-

Website Blocker
• Prerequisites for the project :-

The fundamental ideas of Python and the Tkinter library will be used to construct the
website blocker project.

Tkinter is a well-known Python GUI library. It is one of the quickest and most
straightforward methods to create GUI applications using Tkinter.

You may use the pip install command at the command line to install the library:

pip install tkinter

How to Make a Website Blocker Project Python:

• The module is being imported.


• Make a display window.
• Make a widget for entry.
• Create a function.
• Make a button that says "block."
1. Importing the module is the first step.

from tkinter import *

We use the tkinter library to import modules.

2. Create the display window

root = Tk()

root.geometry('500x300')

root.resizable(0,0)

root.title("TechVidvan - Website Blocker")

We'll use the tkinter library to construct a window where we'll type our text to be
converted into voice.

Tk() created tkinter, which signifies that a window was formed.


geometry() makes the window's width and height resizable (0,0) set the window's fixed
dimensions
bg = " is used to set the window's background color, whereas title() is used to set the
window's title.

Label(root, text ='WEBSITE BLOCKER' , font ='arial 20 bold').pack()

Label(root, text ='TechVidvan' , font ='arial 20 bold').pack(side=BOTTOM)

The Label() widget is used to show one or more lines of text that users cannot change.

root – the name of our window text – the text that appears on the label font – the
typeface in which the text is written pack – the organized widget in block 3 Make a
widget for entry.

• The path to our host file is saved in host path.


• The IP address used by localhost is saved in ip address.
• For multi-line text fields, the Text() widget is utilized.
• After the final word, wrap = WORD will break the line.
• Padx adds more room to the widget's left and right sides, while Pady adds extra space to
the widget's top and bottom sides.

4. Create a function.

host_path ='C:\Windows\System32\drivers\etc\hosts'

ip_address = '127.0.0.1'

Label(root, text ='Enter Website :' , font ='arial 13 bold').place(x=5 ,y=60)

Websites = Text(root,font = 'arial 10',height='2', width = '40', wrap = WORD, padx=5, pady=5)

Websites.place(x= 140,y = 60)

website lists website list(lists.split(,"")) returns a list of all the websites that users may
input. comma-separate the content of the lists, then convert it to a list and save it in a
website with open – When we are done using the file, the with open statement will
automatically terminate the file handler.
r+ will be used to read and write to a file.
Print a label with text previously blocked if the webpage is already in file content.
Otherwise, it will ban all of the specified websites and display a label that reads
'Blocked.'

5. Make a button that says "Block."

def Blocker():

website_lists = Websites.get(1.0,END)

Website = list(website_lists.split(","))

with open (host_path , 'r+') as host_file:

file_content = host_file.read()

for website in Website:

if website in file_content:
Label(root, text = 'Already Blocked' , font = 'arial 12 bold').place(x=200,y=200)

pass

else:

host_file.write(ip_address + " " + website + '\n')

Label(root, text = "Blocked", font = 'arial 12 bold').place(x=230,y =200)

When we press the Block button, the Blocker function is invoked.

When we click the button, Button() is called, which is utilized to show the button on our
window command.
activebackground – specifies the color of the button's background when it is pressed.

6.0 Methodology:-
Source Code

rom tkinter import *

root = Tk()

root.geometry('500x300')

root.resizable(0,0)

root.title("TechVidvan - Website Blocker")

Label(root, text ='WEBSITE BLOCKER' , font ='arial 20 bold').pack()

Label(root, text ='TechVidvan' , font ='arial 20


bold').pack(side=BOTTOM)

host_path ='C:\Windows\System32\drivers\etc\hosts'

ip_address = '127.0.0.1'
Label(root, text ='Enter Website :' , font ='arial 13 bold').place(x=5
,y=60)

Websites = Text(root,font = 'arial 10',height='2', width = '40', wrap


= WORD, padx=5, pady=5)

Websites.place(x= 140,y = 60)

def Blocker():

website_lists = Websites.get(1.0,END)

Website = list(website_lists.split(","))

with open (host_path , 'r+') as host_file:

file_content = host_file.read()

for website in Website:

if website in file_content:

Label(root, text = 'Already Blocked' , font = 'arial


12 bold').place(x=200,y=200)

pass

else:

host_file.write(ip_address + " " + website + '\n')

Label(root, text = "Blocked", font = 'arial 12


bold').place(x=230,y =200)
7.0 Output:-

8.0 Skill Developed:-

Developing a website blocker in Python helps you improve skills in Python programming,
networking concepts, web technologies, file handling, concurrency, user interface
development (if applicable), operating system interactions, error handling, debugging,
security concepts, testing, documentation, version control, and project management.\

9.0 Conclusion :-
In conclusion, developing a website blocker in Python is a highly beneficial project that enables
you to enhance your programming skills while delving into various aspects of software
development. Through this project, you'll gain proficiency in Python programming, networking
fundamentals, file handling, concurrency, system interactions, error handling, debugging,
security concepts, testing, documentation, version control, and project management. By
immersing yourself in this hands-on project, you'll not only sharpen your technical abilities but
also build a solid foundation for tackling more complex software engineering challenges in the
future.

You might also like