Join Amazon Student FREE Two-Day Shipping for College Students!
4394

How to Edit Hosts File in Windows 8 or Windows 8.1 + System

How to Edit Hosts File in Windows 8 or Windows 8.1 + System

Before you edit the HOSTS file in Windows 8.1, you will need to make a little change in Windows Defender. Windows Defender may determine incorrectly that the Hosts file was changed by malware. Defender will automatically remove your custom file and replace it with the default from Microsoft.

To allow hosts file change in Windows Defender, exclude the Hosts file from scanning in Windows Defender. To do this, follow these steps:

  1. Open Windows Defender.
  2. On the Settings tab, click Excluded files and locations.
  3. Under File locations, click Browse.
  4. Locate and then click the Hosts file.
    Note By default, the Hosts file is located in the %systemroot%\system32\drivers\etc folder.
  5. Click Add, and then click Save changes.
  6. Exit Windows Defender.

defender-windows8

Next step, simply press the "Windows" key, type in "Notepad". Right-click the notepad icon and select: Run as Administrator. OK the UAC prompt.

Open the HOSTS file from Notepad. By default, the Hosts file is located in the C:\Windows\System32\Drivers\etc\ folder.

After edited the HOSTS file, run the command below under CMD to flush DNS cache.

ipconfig /flushdns

After everything is done. Go back to Windows Defender and remove the exclusion to secure the hosts file from unauthorized edit.

Leave a Reply

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

 

Your browser is out-of-date. Upgrade your browser today! Internet Explorer | FireFox | Chrome

X