Windows 7/XP/Vista: How to Block Unwanted Sites Without Additional Software

Posted October 4, 2009 by Rob Rogers in Windows

If you want to keep your youngsters from accessing certain sites, you want to block certain cites due to their content, or if you want to play a mean joke on a co-worker, you can block sites by redirecting them to the computer’s IP address that is used for a loopback network connection.

1. Open Computer (My Computer on Windows XP machines).

2. Browse to C:\Windows\System32\drivers\etc

3. Right-click the hosts file and open it with either Notepad or Wordpad.

4. Scroll to the bottom of the page.

5. Input the following:

where is the name of the site you wish to block. Press Enter and repeat this step until you have entered all desired sites.

6. Add an extra carriage return by pressing Enter.

7. Save the file.

8. Close Notepad (or Wordpad).

The sites that you have added to the hosts file will now be blocked.


About Rob Rogers

Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.
View more articles by Rob Rogers

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply