Friday, February 5, 2010

BLOCKING A WEBSITE

If you want to block a particular site in your system to tease your friends for fun then edit the following file with notepad.

c:/windows/system32/drivers/etc/hosts

then select the notepad to open the hosts file.

Every website in the world have a corresponding IP address and the URL is only for ease of memorizing.This hosts file contain the mapping of IP address to the domain name.In that file you can find a line


127.0.0.1 localhost


The local host indicates your own systemIf you replace the localhost with google.com then your system is checked for google.com when your browser requests for google.com the the google is blocked.Similarly if you map the IP address of yahoo with google.com then google is opened when you enter yahoo.com in browser.

In windows vista and 7 you are not able to save the edited file which is not a matter in XP.To edit such files drag that file to another location such as desktop and then edit and save.After saving move the file back to the original location then done.

No comments:

Post a Comment