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.

How to fix the hosts file on Windows 10 Picture 1

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 Picture 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 Picture 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 Picture 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 Picture 5

The host file will display as shown below:

How to fix the hosts file on Windows 10 Picture 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 Picture 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 Picture 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 Picture 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!

5 ★ | 1 Vote

May be interested

  • How to open the hosts file with Admin rights - Apply to open the file systemHow to open the hosts file with Admin rights - Apply to open the file system
    instructions to open the host file with admin rights on windows using the windows admin rights and change the file properties, see how to read the host file here
  • Edit Hosts file to access Facebook 2014Edit Hosts file to access Facebook 2014
    sometimes due to the fault of the network provider, you cannot access facebook, i will guide you to fix the host file in windows so that you can log into facebook stably.
  • How to open the Host file on Windows 10, edit the hosts fileHow to open the Host file on Windows 10, edit the hosts file
    how to open the host file on windows 10 helps users to edit the host file, manage access to web sites on computers and laptops. the following article will guide you how to open and edit the host file on windows 10 simply and quickly.
  • Fix the error that the host file cannot be saved on Windows 7, 8, 10 - How to fix the hosts fileFix the error that the host file cannot be saved on Windows 7, 8, 10 - How to fix the hosts file
    fix the error that the host file cannot be saved on windows 7, 8, 10 - how to fix the hosts file
  • How to Edit Host File on Win 10, 7 Fastest 2024How to Edit Host File on Win 10, 7 Fastest 2024
    you already know all the uses and how to edit the host file on win 10, 7 simply, please refer to hoang ha pc's article!
  • How to Block a Website on All Web BrowsersHow to Block a Website on All Web Browsers
    today's wikihow will show you how to prevent all browsers from accessing a specific website on your windows or mac computer by editing the 'hosts' file. additionally, while it's not possible to block websites on the android platform, you can still do so on your iphone or ipad using the restrictions menu in the settings app.
  • How to open, run the .jar file on a Windows computer?How to open, run the .jar file on a Windows computer?
    to open a .jar file on a windows computer you will have to install the java runtime environment (jre). alternatively, you can use decompression software to view the files attached to the .jar file. if you want to find out more about the steps to run the .jar file and see the files attached in the .jar file, please refer to the following article of network administrator.
  • What is file 000?What is file 000?
    a file with the 000 extension is most likely an indexing service data file used to store locations where the windows operating system can perform file searches.
  • Use Quick Migration to move virtual machines between Hyper-V hostsUse Quick Migration to move virtual machines between Hyper-V hosts
    with quick migration, users can easily move an active virtual machine from a real host system through another system with a minimum downtime, while ensuring performance and performance. necessary stability. by using windows server hyper-v or windows server 2008 with hyper-v, along with quick migration, the manager can fully take the initiative.
  • Instructions to change DMG file to ISO fileInstructions to change DMG file to ISO file
    dmg image file format is the most common file storage format used to distribute software on mac os x. however, windows pc cannot read this file. therefore, to extract the contents of the dmg file on a computer running windows or when you want to burn the image file to disk, you first need to convert the file to an iso image file. here's how to convert a dmg file into an iso file that can be extracted on a windows pc.