Log in

View Full Version : How can I block some particular sites on my computer by using hosts


sourav_7
Nov 16, 2010, 02:54 AM

Curlyben
Nov 16, 2010, 03:21 AM
As you are referring to hosts file simply add the site and the IP of 127.0.0.1. This is the local loopback address and will block access to that site.

sourav_7
Nov 16, 2010, 12:43 PM
How can I save the changes in hosts file because on saving the data in that file it is showing permission windows\system32\... \hosts was denied so somebody help me ***

Curlyben
Nov 16, 2010, 12:52 PM
Save it as a TEXT (txt) file and then rename the old one .OLD and rename the new one without the TXT extension.

sourav_7
Nov 16, 2010, 01:03 PM
Sir I saved the old one as hosts.OLD and new one hosts.txt inside the etc and I tried to block the Google in this way I wrote in last of the document # 127.0.0.2 www.google.com and I opened the in which Google is default it is opened not blocked

sourav_7
Nov 16, 2010, 01:37 PM
I saved the old hosts file with hosts.OLD and new one with hosts.txt and changes with in last line 127.0.0.2 www.google.com saved in and closed all the things when I reopened the Google which is set default in my internet explorer it is opening it is not blocking so *** help me Mr. Curlyben

Curlyben
Nov 16, 2010, 01:53 PM
Should be:


127.0.0.1 google.com
Also rename hosts.TXT to simply hosts with out an extension.

You may need to clear your cache for it to take proper effect.