Professional Documents
Culture Documents
PROJECT
NAME : V. Sivaraman
GRADE : 12th
DIVISION : Everest
SCHOOL : EVA World School
CERTIFICATE
School Seal:
ACKNOWLEDGEMENT
Sivaraman Vasudevan
Grade 12 Everest
INDEX
Sr. No. Topic/Title Pg. No
1 Introduction 1
2 Steps to build 2
Website blocker
3 Procedure 3
4 Modules and 5
Functions
5 Source code 7
6 Outputs 8
7 Bibliography 9
INTRODUCTION
Functions Used:
• Blocker(): It takes the input and converts it into a list.
It then blocks all the websites in the list from the host
file.
• main(): This function is the main function of the
program where the above-mentioned functions are
called for the program to work.
Variables Used:
• root : Name which we refer to our window
• host_path : Stores the path of our host file
• ip_address : Stores the IP address used by localhost
• Websites : Stores websites entered by user
• website_lists : Get all the website to enter by the user
• Website : Creates a list of website_lists
• host_file : Control variable for the host_path file
• file_content : Reads and stores the host_file contents
• website : Control variable for the loop
• block : Used to display button on our window
SOURCE CODE
from tkinter import *
root = Tk()
root.geometry('500x300')
root.resizable(0,0)
root.title("Sivaraman - Website Blocker")
Label(root, text ='WEBSITE BLOCKER' , font ='arial 20 bold').pack()
Label(root, text ='Sivaraman Project' , font ='arial 20
bold').pack(side=BOTTOM)
host_path ='C:\Windows\System32\drivers\etc\hosts'
ip_address = '127.0.0.1'
To download,click here:
WebBlocker.py
OUTPUTS
BIBLIOGRAPHY
• techvidvan.com
• geeksforgeeks.org
• Computer science Class 12 by Sumita
Arora Publications
• askpython.com
• youtube.com