How to Edit Hosts File in Windows 8 or Windows 8.1

You may also like...

5 Responses

  1. Allie says:

    Hi, I seem to have a problem with my hosts file. It will not apply the changes I have made, and is saved as a .txt file. Is there anyway to rectify this mistake?

  2. Zubair Alexander says:

    Hi Allie,

    The answer is yes. I have clearly documented exactly what you are experiencing in this article including the fact that your file will be saved as .txt. Please follow all the steps in this article, especially steps 6-15.

  3. Mzarrini says:

    I tried exactly what this article teaches. However, when trying to replace the hosts file, the system rejects and states that “you need permission to perform this action.” Any solutions? Thank you.

  4. Zubair Alexander says:

    Mzarrini, when exactly are you getting the permission error? Is it in Step 9 or Step 14? If in Step 14 and you are logged in as Administrator then I would suggest you look at the folder’s permissions. Go to the properties of C:\Windows\System32\drivers\etc folder. On the Security tab click Advanced and verify that the account that you are logged in as has the proper permissions to modify the files. I have tried these steps on multiple Windows 8.1 computers without any problems. The message that I get when I copy the file in Step 14 is “You’ll need to provide administrator permission to copy to this folder.” Because I am logged in as an Administrator, all I have to do is click Continue to overwrite the file.

  5. Leo says:

    Worked like a charm, thanks.
    The only thing i would suggest is when you go to the location where you saved the hosts file and it shows hosts -original.txt (or whatever you saved it as) and you rename it to hosts, you need to highlight the whole thing hosts-original.txt, then rename it and it will change the extension to a File. That part was a little confusing.

Leave a Reply

Your email address will not be published. Required fields are marked *

three × 2 =