Restricting a Website – very easy

Posted: May 8, 2010 in Tips and Tricks, Windows, XP


Suppose you wanna block then or some other site like the below one

1] Browse C:\WINDOWS\system32\drivers\etc

2] Find the file named HOSTS and open it with notepad

3] Go to the last line – “ localhost” – under that add, and then that site will no longer be accessible !!!


C:\WINDOWS\system32\drivers\etc\hosts localhost


If you wanna block more sites you can add more lines to this by addling 1 to the Loop back IP


C:\WINDOWS\system32\drivers\etc\hosts localhost


Group Policy
Open Group Policy (Run -> gpedit.msc)

Go to User configuration -> Windows settings -> Internet explorer maintenance->
security -> double click Security zones

Enable security zones and privacy by selecting import the current security zones and privacy settings -> Click on modify settings -> Click on privacy -> Click site -> In the address of the web site tab add the site name you wanna block -> Click block -> click OK -> OK -> OK

This will block the site.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s