Modify & save hosts file Solved

  1. phrab's Avatar
    Posts : 159
    windows 10 professional 64-bit
       25 Feb 2018 #1

    Modify & save hosts file


    I have 2 machines: Win10 & WinXP. For some reason, my hosts file on my Win10 machine listed Windows 10 Help Forums as 127.0.0.1. I don't know how this happened & I have not been able to delete that entry & save the hosts file in Windows/Drivers/etc.

    How can I give myself (the administrator) permission to access the file & to save it in the etc. folder?
    Is there a utility that will give me control over the hosts file?

    Thank you in advance!
      My ComputerSystem Spec

  2.    25 Feb 2018 #2

    Bluelife Hosts Editor is convenient. Easy to find. Easy to use. Dedicated, with a few extra features.
    Checkboxes let you enable and disable entries. It deals with permissions issues. Easy.

    Click image for larger version. 

Name:	Untitled.png 
Views:	3 
Size:	256.4 KB 
ID:	178516
    Last edited by dalchina; 25 Feb 2018 at 06:59.
      My ComputerSystem Spec

  3. sml156's Avatar
    Posts : 672
    Microsoft Windows 10 Pro 64-bit
       25 Feb 2018 #3

    Notepad ++ edits it easy too. Asks to restart with admin privileges when you try to save it.
      My ComputerSystem Spec

  4. Cliff S's Avatar
    Posts : 22,012
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       25 Feb 2018 #4

    phrab said: View Post
    I have 2 machines: Win10 & WinXP. For some reason, my hosts file on my Win10 machine listed Windows 10 Help Forums as 127.0.0.1. I don't know how this happened & I have not been able to delete that entry & save the hosts file in Windows/Drivers/etc.

    How can I give myself (the administrator) permission to access the file & to save it in the etc. folder?
    Is there a utility that will give me control over the hosts file?

    Thank you in advance!
    No need for 3rd party software.

    Download the shortcut I provided in this mini tutorial: Protecting yourself from In-Browser Miners Solved - Windows 10 Forums

    Default hosts files:

    For Windows XP or for Windows Server 2003
    Note   Note
    There is no hashtag/number sign<#> before the last line: "127.0.0.1 localhost", on XP

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    127.0.0.1 localhost



    For Windows 10

    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost
      My ComputersSystem Spec

  5.    25 Feb 2018 #5

    Hey guys. Read the OP's post:
    I have not been able to delete that entry & save the hosts file in Windows/Drivers/etc.
    He cannot save the file ... because it's protected. He doesn't have rights.
    I discovered this problem long ago with Windows XP (or was it Win 7 ?).
    The solution is to unlock the file. You must have permission to write to the hosts file.

    So ... take ownership of the file and give yourself write permission.
      My ComputerSystem Spec

  6. Cliff S's Avatar
    Posts : 22,012
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       25 Feb 2018 #6

    margrave55 said: View Post
    Hey guys. Read the OP's post:
    I have not been able to delete that entry & save the hosts file in Windows/Drivers/etc.
    He cannot save the file ... because it's protected. He doesn't have rights.
    I discovered this problem long ago with Windows XP (or was it Win 7 ?).
    The solution is to unlock the file. You must have permission to write to the hosts file.

    So ... take ownership of the file and give yourself write permission.
    I believe the problem is he's going about it wrong.
    You need to open Notepad as admin first and above all.
    Then, in/through Notepad go to hosts, to make changes.

    My shortcut does all that for you.
      My ComputersSystem Spec

  7. phrab's Avatar
    Posts : 159
    windows 10 professional 64-bit
    Thread Starter
       25 Feb 2018 #7

    dalchina said: View Post
    Bluelife Hosts Editor is convenient. Easy to find. Easy to use. Dedicated, with a few extra features.
    Checkboxes let you enable and disable entries. It deals with permissions issues. Easy.
    Thank you! I will try that. I've used software that you've recommended in the past & I've always been happy with it!!
      My ComputerSystem Spec

  8. phrab's Avatar
    Posts : 159
    windows 10 professional 64-bit
    Thread Starter
       25 Feb 2018 #8

    Cliff S said: View Post
    No need for 3rd party software.

    Download the shortcut I provided in this mini tutorial: Protecting yourself from In-Browser Miners Solved - Windows 10 Forums
    Done! Thank you!
      My ComputerSystem Spec

  9. Bree's Avatar
    Posts : 9,174
    10 Home x64 (1809) (10 Pro on 2nd pc)
       25 Feb 2018 #9

    phrab said: View Post
    For some reason, my hosts file on my Win10 machine listed Windows 10 Help Forums as 127.0.0.1. I don't know how this happened...
    phrab does know now (on another thread) apparently it's included in HP hosts (for some unknown reason).
    Windows 10 won't connect to https://tenforums.com
      My ComputersSystem Spec


 

Related Threads
Hey All - Any sage advice your have, I'll take it. I've been an avid Win 8.1 user for years, refusing to upgrade just because of stories I had heard. Well OK, also because I just liked 8.1. Certainly not because I don't like change, NOPE! ...
Vanilla hosts file ( hosts file not working ) in AntiVirus, Firewalls and System Security
Hi I keep getting this symptom from time to time , it fixes with windows updates but then occasionally come back . I have a list of advertising and malware websites that I filter through hosts file that are often used by a chat client as per the...
Hosts file in General Support
I am embarrassed that I forgot on change from Windows 7 to 10 I forgot until now to remember that only the sample Hosts file was installed. Now I cannot recall where the more comprehensive version came from or how to install it. Please advise me.
Solved Hosts file in General Support
should the Hosts file be made read only ?
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: 127.0.0.1 hostname alias...
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 08:36.
Find Us