How to fix the hosts file on Windows 10

Sometimes, for some reason, you need to edit the host file on your computer, but you cannot edit because when saving the host file, you don't know how to open the host file…. If you do not know how to fix hosts file on Windows, please refer to the following article. The article details you how to fix hosts file on Windows 10.

Picture 1 of How to fix the hosts file on Windows 10

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.

Picture 2 of How to fix the hosts file on Windows 10

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.

Picture 3 of How to fix the hosts file on Windows 10

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.

Picture 4 of How to fix the hosts file on Windows 10

Step 2: Open the host file with notepad

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

Picture 5 of How to fix the hosts file on Windows 10

The host file will display as shown below:

Picture 6 of How to fix the hosts file on Windows 10

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:

Picture 7 of How to fix the hosts file on Windows 10

Step 4: Save the host file

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

Picture 8 of How to fix the hosts file on Windows 10

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.

Picture 9 of How to fix the hosts file on Windows 10

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!

ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZp6ZrXq1tMRmn6irpKh6p7XLnmSopl2stq%2BwzrCqZmlg