Windows 10: Hosts file. Should it be set to read only? Solved

  1. equoox's Avatar
    Posts : 19
    Windows 10 Home 64 bit v 1803
       26 Jan 2016 #1

    Hosts file. Should it be set to read only?

    Since using XP and then Windows 7 have always set the Hosts file to read only as a security measure.

    Is it still advisable to do this on Windows 10?
      My ComputerSystem Spec

  2. sml156's Avatar
    Posts : 667
    Microsoft Windows 10 Pro 64-bit
       26 Jan 2016 #2

    I don't think it matters its pretty trivial for malware to change it back to read write if its needs to. Some virus scanners ( I think Malwarebytes pro ) make it read only.

    I have been using a program called HostsMan for years and that seems to help with not only Malware but for adds too. There is a bit of a learning curve when you first start using it though, probably half hour of reading of how to use it properly.

    HostsMan is a freeware application that lets you manage your Hosts file with ease. No Spyware! No Adware! No Viruses! 100% Freeware! Clean & simple.

    Windows only: The hosts file is the best way to entirely block a web site or other net entity. You can edit it by hand, but free editor HostsMan verifies, cleans up, and manages your hosts file clean and simple.

    What HostsMan does is provide concierge service to that hosts file, which blocks certain sites from being accessed by your computer through a browser, IM client—anything. The hosts file can also block out terrible ad servers and ban time-wasting web sites.

      My ComputerSystem Spec

  3.    26 Jan 2016 #3

    By default the hosts file is owned by SYSTEM and you can only read. If you want to write to it you need to do so as administrator (for example notepad will not let you save your changes unless you run it as administrator).

    So your malware couldn't do anything to it unless you clicked said "yes" to the "Allow this program to make changes to your PC" prompt that UAC gives you whenever a program tries to run as Administrator.

    If you have UAC turned off or if you say "Yes" to that prompt then malware can do whatever it likes anyway (take ownership, change permissions etc) and making it read only wouldn't help at all.

    I'd leave it as it is.
      My ComputerSystem Spec

  4.    26 Jan 2016 #4

    The Read Only file attribute isn't a viable security measure. This is only an advisory that the file should not be written to. Windows Explorer and alternative file managers usually honor this advisory but it can be easily ignored. You can be sure that malicious software will simply ignore the setting.
      My ComputerSystem Spec

  5. equoox's Avatar
    Posts : 19
    Windows 10 Home 64 bit v 1803
    Thread Starter
       26 Jan 2016 #5

    Thanks guys. I really appreciate that information. UAC is turned on for sure :)
      My ComputerSystem Spec


Related Threads
Solved No permission to change hosts file ? in User Accounts and Family Safety
I have changed from W7 to W10 but find that although I am logged in as the administrator, I am unable to save any changes to my hosts file and get the message that I don't have accees/permission and should contact the administrator. Can anyone...
Find Out who reset HOSTS file ? in Network and Sharing
Hi I have a custom hosts file which has a lot of entries redirecting back to (this is normal) One of my DNS servers is being updated, so I added a new entry to the hosts so I could get to my sites. This worked fine. After about...
Hosts file in Network and Sharing
How can I reset the Hosts file back to the default? pls Is This good?
I can set an alias in the hosts file on a win7 machine and access it just fine but doing the same in Win10 prompts for creds that never work even when entered correctly. What did win10 change? hosts file entry: hostname alias...
My hosts files disappeared in my C:\Windows\System32\drivers\etc. Can some one help me to solve this?
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:12.
Find Us