How to Block Websites

October 7, 2007

HOW TO…
Block websites

How do I block certain websites from being viewed on my computer? I am using Internet Explorer.

Software like ‘Net Nanny’ allows you to control which websites can be accessed from your computer.

If you don’t have a monitoring program though, you can achieve similar results with a little bit of technical know-how.

Open Windows Explorer.

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

Find the file named “HOSTS”.

Open the file in notepad.

Under “127.0.0.1 localhost” add 127.0.0.2 www.name_of_the_site_to block.com. So, if you’d like to block www.hotporn.com, the code will look like this:
127.0.0.1 localhost
127.0.0.2 www.hotporn.com

The site is now blocked.

If you want to block another site, just repeat the process with the next number in the 127.0.0 sequence. For example:
127.0.0.3 www.blocked_site.com
127.0.0.4 www.blocked_site.com  

source:
http://cooltech.iafrica.com/swissarmy/howto/478289.htm