How to edit the Windows Hosts file

Last updated on

Windows 10 and Windows 8

  1. Click on the Start windows icon button to open the menu
  2. Type Notepad
  3. Right-click on Notepad and choose Run as administrator
  4. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
  5. In Notepad, click File and Open, and navigate to the hosts file. It should be in C:\Windows\System32\drivers\etc
  6. If the folder appears blank, you will need to click the file extension dropdown where it says Text Document (*.txt), and change it to All Files (*.*).
  7. Open the file called hosts. In the Hosts file, make the necessary changes and then click Save on the File menu.

Windows Vista and Windows 7

  1. Click Start windows icon,
  2. Click All Programs
  3. Click Accessories
  4. Right-click Notepad, and then click Run as administrator.
  5. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
  6. In Notepad, click File and Open, and navigate to the hosts file. It should be in C:\Windows\System32\drivers\etc
  7. If the folder appears blank, you will need to click the file extension dropdown where it says Text Document (*.txt), and change it to All Files (*.*).
  8. Open the file called hosts. In the Hosts file, make the necessary changes and then click Save on the File menu.

Let me know in the comments if this helped. Follow me on Twitter, Facebook and YouTube.

p.s. I increased my AdSense revenue by 68% using AI 🤖. Read my Ezoic review to find out how.

1 Star2 Stars3 Stars4 Stars5 Stars 5.00 (1 votes)

Leave a Reply

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

We use Markdown to style comments, like on Github and Reddit.
To do a line break, type two spaces after the sentence.
You can add inline code by wrapping it in backticks: `code here`

    To do an entire block of code  
    type four spaces before the line
    and it will appear in a block like this.
    <-- four empty spaces