Home >System Tutorial >Windows Series >What should I do if the Win10 hosts file is blank? Analysis of the problem of blank Win10 hosts file

What should I do if the Win10 hosts file is blank? Analysis of the problem of blank Win10 hosts file

王林
王林forward
2024-02-10 16:00:091320browse

php editor Xiaoxin will help you analyze the problem of blank Win10 hosts file. When using Windows 10 system, sometimes the content of the hosts file is blank after opening, which brings trouble to us when modifying the hosts file. There are many reasons why the hosts file is blank. It may be system permission settings, virus infection, the hosts file being cleared, etc. Next, we will analyze these problems one by one and provide solutions to help you repopulate the hosts file to ensure your network security and browsing experience.

Win10 hosts file blank problem analysis

There are two methods to find the hosts file:

One is to search through the path:

c:\windows \system32\drivers\etc

The second is to search by running (shortcut key Win R) and entering the "path".

Win10 hosts文件空白怎么办?Win10 hosts文件空白问题解析

After entering the folder, find the hosts file. If it is empty, copy the following content and save it. (If it cannot be edited, copy the hosts file to the desktop first. After modifying and saving, copy it back to the path)

# Copyright (c) 1993-1999 Microsoft Corp.

## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

## Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

## For example:

## 102.54.94.97 rhino.acme.com # source server

# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

The above is the detailed content of What should I do if the Win10 hosts file is blank? Analysis of the problem of blank Win10 hosts file. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:xpwin7.com. If there is any infringement, please contact admin@php.cn delete