Tips and Tricks

How to Block a website on your computer

Sometimes we do not want the users of a particular computer or network to open a particular website.  Although web browsers provide facilities to block a website but they do not work always and it is quite easy to undo the settings. So follow this guide to know how to block websites by using computer’s host file. By setting a password for your host file, other users will not be able to unblock the websites back. Here are the steps:

1.      Open the ‘Command Prompt’ and type “notepad C:/Windows/System32/drivers/etc/hosts” and hit ENTER . The host file will be opened.

2.      Now in the host file find the line that says: “ localhost,”. Bellow this line type the IP address and name of the website that you want to block separating by a space. If you want to block more than one site write the similar details in individual line. For example if you want to block then write the following line:

3.      To find out the IP address of a website open the command prompt and type “ping” and press Enter key. If a website has more than one IP address then write each one with the website name in separate line.

4.      Save the host file after adding the details of all website that you want to block and close the host file and command prompt.
Its done !

About Sri

An Electronics Engineer by profession. But as a hobbyist I'm drawn towards various topics which is what this blog is all about. :)


No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 531 other followers

Blog Stats


Blog categories..

On My twitter now !

This is me :)

%d bloggers like this: