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

127.0.0.1       localhost

Or

127.0.0.1       localhost

::1                   localhost



Add  127.0.0.1 www.facebook.com


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

127.0.0.1       localhost

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

Refer to the image below:


Step 4
Instead of 127.0.0.1 you can also enter 127.0.0.2 and 127.0.0.3 (increase the IP address by one), like:

127.0.0.2 facebook.com

127.0.0.3 www.orkut.com


Both steps 3 and 4 working perfectly, actually when you add  

127.0.0.1 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.