Guide | How To Lock Hosts File To Prevent Hijacking

  • Thread starter Thread starter Omnipotent
  • Start date Start date
The associated guide may contain user-generated or external content.
O

Omnipotent

Thread author
Imagine clicking on www.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.

Source: Hosts File in Windows 10 / 8 / 7: Location, Edit, Lock, Manage
 
prevent any one or any malware from writing to it
This way of Hosts protection sometimes works, but often fails. Most of modern malware can easily change attributes and successfully r/w Hosts. IMHO, only low-level driver which intercepts r/w requests may help in this situation. Some AV-solutions prevent your Hosts from changes by this method.