1. Home
  2. Windows

Windows 7 WinHosts File Editor

There are plenty of reasons why you may want to edit the Windows 7 WinHosts file, one of the most popular one is to block certain websites from opening up. This post will guide through both manual and automatic ways of doing so.

Manual Method

Type Run in Start Search and hit Enter. In Run dialog box, paste the following path,


and hit OK.

Run Winhosts Windows 7

Select Notepad from the Open with dialog window to open the WinHosts file in notepad. Now scroll down to find the IP Addresses and their host information, such as, localhost. This mean localhost is getting mapped to To block certain websites you need to map the URL with as shown in the screenshot below.

WinHosts file Windows 7

It can also be used to speed up the loading of websites that you visit most frequently. What happens when you load a certain URL in the browser? It is first converted into IP Address and then loads up. If the correct IP Address is already given in the WinHosts file then it will speed up the loading since the system will not need to convert the URL into the respective IP Address.

It is recommended to use this only to block certain websites, entering multiple IP addresses to speed up the browsing can actually slow down your system.

Automatic Method

If the manual method is too complicated for you, grab a small opensource freeware called WinHosts-bss. It displays all entries in the Windows WinHosts file making it easier for the user to add/remove them. Select an entry from the list and hit Delete to remove it. Enter the IP Address, Host Name, and hit Add to add it to the WinHosts file. It’s that simple.


Download WinHosts-bss

Important Note: This app will be detected as a virus by Microsoft Security Essentials. It is actually a false positive, for confirmation you can download the source code and check that the code is clean. It is detected as false positive because the app edits WinHosts file. Don’t worry, the app is perfectly clean. We tested it before reviewing!


    • It is actually a false positive. Please check the Important Note at the end of the article, I just updated it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.