18 January 2012

How to Block Websites without Using any Software in Windows

If you want to block a particular website or websites so nobody can access them through your computer, then you can use this trick that I’ll show you in this article. This trick is useful in situations like you don’t want any children in your house surfing  certain websites or you use an application (like Photoshop CS5) that checks the validity of its key online and for some reasons you use a fake key or crack. You can block any website in Windows easily without using any software. Let assume that you want to block Facebook website. 
Now follow these steps:

Step 1
Go to My Computer and then C:\Windows\System32\drivers\etc.

Step 2
Double-click on host file and form Open with window, select Notepad.

Step 3
Under the line       localhost

Or       localhost

::1                   localhost

Add www.facebook.com

You can block other sites simply by adding them under       localhost, for example you want to block Facebook as well as Orkut site, and then your host file must be like this:       localhost

::1                   localhost www.facebook.com www.orkut.com

Refer to the image below:

Step 4
Instead of you can also enter and (increase the IP address by one), like: facebook.com www.orkut.com

Both steps 3 and 4 working perfectly, actually when you add www.sitename.com 

then Windows handles all domain name resolution requests for www.facebook.com by the local machine as a substitute of configured DNS.

Step 5
Go to your Internet browser and type the website address and see the result. If you want to unblock the website and back to the default, simply delete the lines that you have entered before.

Note: Delete your web browser History and Cache before you modify the Windows host file.