Tuesday, September 8, 2009

Blocking websites in your local machine

Do you want to restrict some of the sites to open up in your machine ? You can do with some browsers but same can be easily find out by others. Here is another way for blocking sites in the local machine.

1. Take C:\Windows\system32\drivers\etc
2. Open file hosts in C:\Windows\system32\drivers\etc
3. Add a new line to the hosts specifying the website name.

For example if you want to block www.youtube.com and www.orkut.com please add the below lines to the file hosts
127.0.0.1 www.youtube.com
127.0.0.1 www.orkut.com

You may need to restart your browser for making it effect.

1 comment:

goshi said...

how can we unblock any restricted website if block by administrator ?