Thursday, October 29, 2009

Block site without any software

I was trying to block few site in my comp ..... and finally
I found out a very simple method to do it ....

Browse to C:\WINDOWS\system32\drivers\etc

Find the file named "HOSTS" .....open it with wordpad

Under "127.0.0.1 localhost" Add "127.0.0.2 www.abc.com" ,
and that site will no longer be access able.

eg:- .....
127.0.0.1 localhost
127.0.0.2 www.abc.com

www.abc.com is now inaccessible able.

figure - click to enlarge

3 comments:

  1. i tried this thing.. bt its not working on my windows 7.. it says some thing like this

    "you dont have the permission to save this in this folder. Contact your administrater for permission"..

    ReplyDelete
  2. I have not tried it in windows7 but this thing will work on Windows XP. I think that the folder doest not have permission for you. Try to log in as admin and then try.

    ReplyDelete
  3. The steps are very simple .... and the concept is that it just map a site name to wrong address :)

    ReplyDelete