Editing Hosts Files

 Editing Hosts Files in Your Operating System

The following instructions are advanced steps for different operating systems.

Windows

Windows users are able to edit their hosts file directly on their PC.

Windows 8

  1. Select the Start key and locate Notepad. (If you do not see it on your current Start page, begin typing “Notepad” and a search box will appear on the right side of the screen with a list of programs under it. Notepad should be at the top of this list.
  2. Right click on Notepad. You will see options appear on the bottom portion of the Start Page.
  3. Select Run as administrator.

    Note: Performing this action may cause Windows User Account Control to prompt you with a warning or, if you are logged in as another user, a request for the Administrator password. This step is necessary to modify system files such as the hosts file.

  4. Click File in the menu bar at the top of Notepad and select Open.
  5. Click the dropdown box in the lower right hand corner that is set to Text Documents (*.txt) and select All Files (*.*)
  6. Browse to C:\Windows\System32\Drivers\etc and open the hosts file.
  7. Make the needed changes, add 123.45.67.89 www.example.com at the bottom of the file.
    Replace “123.45.67.89 www.example.com” with your actual IP & domain name.
  8. Save when prompted.

Windows 7 or Vista

  1. Browse to Start > All Programs > Accessories.
  2. Right-click Notepad, and select Run as administrator.
  3. Click Continue on the UAC prompt.
  4. Click File > Open.
  5. Browse to C:\Windows\System32\Drivers\etc.
  6. Change the file filter drop-down box from Text Documents (*.txt) to All Files (*.*).
  7. Select hosts, and click Open.
  8. Make the needed changes, add 123.45.67.89 www.example.com at the bottom of the file.
    Replace “123.45.67.89 www.example.com” with your actual IP & domain name.
  9. Save when prompted.

 

You may deactivate a line by prefacing it with a “#” (as in the third line above). This will cause the line to be ignored when the file is utilized.