Author Topic: Lock, Manage, Edit Hosts File in Windows 8 | 7  (Read 782 times)

Offline javajolt

  • Administrator
  • Hero Member
  • *****
  • Posts: 35986
  • Gender: Male
  • I Do Windows
    • windows10newsinfo.com
Lock, Manage, Edit Hosts File in Windows 8 | 7
« on: December 23, 2013, 05:16:41 PM »
The Hosts file in Windows 8 | 7, is used to map host names to IP addresses. This Hosts file is located deep down in the Windows folder. It is basically a plain text file and the size of the original default Hosts file is around 824 bytes.

In this post, we will see its location and also how to manage, lock or edit the Hosts file.

The Hosts file in Windows is located at the following location:

Quote
C:\Windows\System32\drivers\etc
Imagine clicking on thewindowsclub.com and seeing a completely different web site load in your browser. Malware can redirect Web addresses on your computer by altering your hosts file. This is referred to as the Host File Hijack.

To prevent Host file hijacks, you may navigate to it, right-click on it, select Properties and make it a Read only file. This will lock down your Hosts file and prevent any one or any malware from writing to it.

Block website using Hosts file

To block a website using the Hosts File, simply add the following entry:

127.0.0.1       blocksite.com

Although I do not do it, many users like to manually add entries to it in order to block the opening of one or more particular websites. Yet others like to download and use List from well-know sources like mvps.org, to add entries which block malware sites from opening.

Edit Hosts file

While you can always manually manage or edit Hosts file manually, I would like to suggest that you use a third-party freeware tool like HostsMan to do it.



HostsMan is a feature-rich tool that lets you add, remove, edit entries in the Hosts file. It also lets you easily add third-party Hosts lists that help in blocking malware sites and lets you easily enable or disable the hosts file. It includes a built-in hosts file updater & a hosts editor. It lets you scan the hosts file for errors, duplicates and possible hijacks – and also lets you create an Exclusion list. One more useful feature it offers is the Hosts file backup manager. Back up your Hosts file to a safe place and use it to restore it, should the need arise.

Hostman also lets you Flush DNS cache, open Hosts with a text editor, count the number of hosts, find duplicates, replace IP, scan hosts for malicious entries, rearrange hosts, manage DNS Client Service and more. In short, its the only Hosts Manager that you will even need. You can download it from its home page.

How to manually reset Hosts file back to default in Windows may also interest you.

twc