PHP editor Zimo will introduce to you how to modify the hosts file in win10 system. The hosts file is a configuration file used to map domain names and IP addresses. Modifying the hosts file can achieve effects such as blocking ads and accelerating access. In the win10 system, the method of modifying the hosts file is not complicated. You only need to follow certain steps. Next, we will introduce in detail the specific steps to modify the hosts file in win10 system, so that you can easily achieve the purpose of custom domain name resolution.
1. Open the device, enter the C drive, and locate C: windowssystem32driversetc; as shown in the picture:
2. Then, find the hosts file in the folder. Right-click and select [Properties]; as shown in the figure:
3. Find the account you are using in the [Security] column in the hosts file properties window and give [Modify] and [Write] permission, click [OK]; as shown in the picture:
4. Then, open the hosts file in Notepad format; as shown in the picture:
5. Finally, enter a specified IP for access and save it. as the picture shows:
The above is the detailed content of How to modify the hosts file in win10 system. For more information, please follow other related articles on the PHP Chinese website!