Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Fix the Hosts File on Windows 10

Learn how to fix the Hosts File on Windows 10 with practical troubleshooting steps, common causes, and prevention tips to keep the issue from returning.

Table of Contents

This guide explains how to resolve the Hosts File on Windows 10, starting with the most likely causes and moving through practical troubleshooting steps.

How to Fix the Hosts File on Windows 10 screenshot

Step 1: Open the etc folder containing the host file

Method 1: Click This PC to open File Explorer , then navigate to the etc folder under the path C: WindowsSystem32driversetc.

How to Fix the Hosts File on Windows 10 screenshot 2

Method 2: Press Windows + R to open the Run dialog box, enter the keyword C: WindowsSystem32driversetc into Run and click OK to open the folder etc.

How to Fix the Hosts File on Windows 10 screenshot 3

Method 3: Open the host file with Searchbox under the taskbar, click Searchbox and enter the keyword C: WindowsSystem32driversetc then select the search results, etc folderwill be opened.

How to Fix the Hosts File on Windows 10 screenshot 4

Step 2: Open the host file with notepad

Right-click on the host file -> Open in Notepad.

How to Fix the Hosts File on Windows 10 screenshot 5

The host file will display as shown below:

How to Fix the Hosts File on Windows 10 screenshot 6

Step 3: Edit the host file

To map a domain, just add a line based on the example below starting with the IP address, to the space, then the domain name. If you want to block the website, redirect to 127.0.0.1. If you do not want that line to take effect, put the # before the line. For example, you add a host segment as follows:

How to Fix the Hosts File on Windows 10 screenshot 7

Step 4: Save the host file

After you have finished editing you press Ctrl + S to save the file and turn off Notepad .

How to Fix the Hosts File on Windows 10 screenshot 8

If you can not save the hosts file directly, you do the following:

Go to the etc directory as above, copy the hosts file to any location (for example the desktop), then perform the same steps as above for the hosts file on the desktop (open the hosts file with Notepad and edit, save the host file ). Then you copy the host file on the desktop and paste it into the etc folder, a message appears that the host file exists, select Replace the file in the destination to overwrite the old hosts file.

How to Fix the Hosts File on Windows 10 screenshot 9

Above the article has instructions on how to fix the host file on Windows 10, with Windows 7 you do the same or you can refer to the detailed tutorial here http://TipsMake. vn/cach-sua -file-host-config-file-host-doc-mo-file-host /

Good luck!

FAQ

What usually causes the Hosts File on Windows 10?

The cause may involve incorrect settings, outdated software, damaged files, permission problems, device compatibility, or a temporary system issue.

What should I try first to resolve the Hosts File on Windows 10?

Restart the affected app or device, install pending updates, verify settings and connections, and follow the troubleshooting steps in order.

How can I prevent the issue from returning?

Keep software updated, maintain backups, avoid interrupted installations, and review system or device settings after major changes.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.