Lab 4

You might also like

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

Internet and Web Programming LAB

VI SEMESTER

ACADEMIC YEAR 2023 (Jan-March)

SCHOOL OF COMPUTING SCIENCE & ENGINEERING


Lab Assignment-4
Q.1 Demonstrate blocking of certain websites at Host Operating System Level without using any
third-party tool.

[Hint: use host file of OS]

Briefly write the steps involved in this process.

Submission: Submit screenshots of every step in one MS-DOC file in Google


Classroom.

STEPS:

1. Open File Explorer by clicking the folder icon in your taskbar. Click the bar to the left
of Search and paste in: C:\Windows\System32\drivers\etc

2. Double click the hosts file and open it using Notepad or some other text editor as
administrator. Create a new line at the bottom of the file by tapping Enter.
3. On the new line, paste in the IP 127.0.0.1 and then type the URL of the domain you want
to block. For instance if you want to hide VIT Bhopal website, the line will look like
this: 127.0.0.1 www.vitbhopal.ac.in

You might also like