How to Block Websites in Windows XP, Vista & Windows 7

Archived in the category: Windows, Windows 7
Posted by admin on 01 Apr 10 -

If by any chance you want to block the access to a specific website from your computer, Windows provides you the way to do this by editing the hosts file. This way you’ll be able to put aside websites you no longer want to be accessed from your computer.

The file is located in ‘C:\Windows\System32\Drivers\etc’ and can be accessed with Notepad. Browse to Start – All Programs – Accessories, right click on Notepad and select “Run as Administrator”. Use the File – Open option and browse to the host.ini location and then select and open the file in Notepad.

You’ll notice that there’s some content in this file. You don’t need to change anything, just add the following line, or lines, at the end of the existing content:

127.0.0.1 www.blocked-website1.com

You can block as many websites as you want but keep in mind that the host.ini file shouldn’t get to big.

This method can be used to block websites on Windows XP, Windows Vista & Windows 7.

One comment for “How to Block Websites in Windows XP, Vista & Windows 7”

1

The file is located in ‘C:\Windows\System32\Drivers\etc’ and can be accessed with Notepad. Browse to Start – All Programs – Accessories, right click on Notepad and select “Run as Administrator”. Use the File – Open option and browse to the host.ini location and then select and open the file in Notepad.
+1

July 6th, 2010 at 8:48 am

Laeave a Reply