How to Block Unwanted Sites Without Installing Any Software

Filed Under (Technology tips, Windows 7, Windows Vista, Windows XP, Windows error) by Ezu on 06-10-2009

Tagged Under : , , , ,

How you can block websites from access? A possible answer of this question is to use a software that can block the access of websites, but I’m not sure if this is the right solution. Another solution is to update hosts files from system32 directory.

When you want to block the access to certain websites, you have a reason, for example to prevent your kids from access to these sites or you want to block it because it has virus, Trojan or malware. When you make the modification of hosts file, you can block sites by redirecting them to the computer’s IP address that is used for a loopback network connection.

Steps to block websites from access

The steps can be used of Windows XP, Windows Vista and also Windows 7.

Step 1: Go to etc directory; (C:\Windows\System32\drivers\etc)

Step 2: Right-click on the hosts file and open it with Notepad or other software like Wordpad;

Step 3: On the last line you should have 127.0.0.1      localhost;

Step 4: After the last line of file (Step 3), type the IP address of any website that you want to redirect your blocked sites to, and in the final of line type the website address of site that you want to block it;

For example: If you want to block google.com website, and to redirect the traffic to yahoo.com, type in hosts file:   209.131.36.158            google.com

209.131.36.158 – the IP of yahoo.com website

Note:If you don’t want to redirect the blocked site to any other site , then you can use your own localhost ip 127.0.0.1

Step 5: Save the hosts file;

Step 6: Restart your browser;

Comments:

2 Responses to “How to Block Unwanted Sites Without Installing Any Software”


  1. Thank you for this article, will help me very much because at home I have 2 children, and I have some sites to block it and I will follow your steps to block the website.


  2. This is an excellent post, I’ll be adding you to my bookmarks

Leave a Reply