1.    26 Jan 2016 #1
    Join Date : Jan 2016
    Posts : 18
    Windows 10 Home 64 bit

    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 System SpecsSystem Spec

  2.    26 Jan 2016 #2
    Join Date : Jun 2014
    Posts : 310
    Microsoft Windows 10 Pro 32-bit 10586

    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 System SpecsSystem Spec

  3.    26 Jan 2016 #3
    Join Date : Jul 2015
    Posts : 2,552
    10 Pro

    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 System SpecsSystem Spec

  4.    26 Jan 2016 #4
    Join Date : Oct 2014
    Posts : 601
    Windows 7

    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 System SpecsSystem Spec

  5.    26 Jan 2016 #5
    Join Date : Jan 2016
    Posts : 18
    Windows 10 Home 64 bit

    Thanks guys. I really appreciate that information. UAC is turned on for sure
      My System SpecsSystem Spec


Similar Threads
Thread Forum
Find Out who reset HOSTS file ?
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...
Network and Sharing
Solved No permission to change hosts file ?
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...
User Accounts and Family Safety
Hosts file
How can I reset the Hosts file back to the default? pls Is This good?
Network and Sharing
Hosts File Alias not working with File Share
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...
Network and Sharing
Help!!! why can't i find Hosts file in system 32
My hosts files disappeared in my C:\Windows\System32\drivers\etc. Can some one help me to solve this?
General Support
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 01:55.
Find Us
Twitter Facebook Google+

Windows 10 Forums