Explanation of the operating system Hosts file 1. What is a Hosts file? The hosts file is a computer file used to store information about each node in the computer network. This file maps the host name to the corresponding IP address. The hosts file is usually used to supplement or replace the DNS function in the network. Different from DNS, computer users can directly control hosts files. The historical ARPANET (predecessor of the Internet) of the Hosts file does not use DNS to resolve the addresses of nodes in the network. Since there was no centralized system for this purpose at that time, each network node uses its own network node map and assigns a corresponding name to facilitate user memory. At that time, there was no system to ensure that all systems on the network were represented by the same name, and there was no way to read other users' hosts files and automatically copy them. ARPANET is small in size, so that you can use the hosts file to name some predefined names in specific situations. A typical network node has one address and multiple names. However, as the personal network grows, it is increasingly difficult to manage hosts files. 2. the Hosts file location is different for different operating systems (or even Windows versions): in Windows, the default hosts file is usually blank or contains a comment statement and uses a default rule: 127.0.0.1 localhost www.2cto.com :: 1 localhost 3. Use the Hosts file. The hosts file can also be used in other cases. For example, you can redirect a known advertisement server to a machine without advertisement (usually a local IP Address: 127.0.0.1) to filter ads. You can also reduce bandwidth by not downloading network ads. Using the hosts file can also reduce access to the DNS server to speed up access and reduce bandwidth consumption. Another important purpose of hosts files is to intercept requests from malicious websites to prevent access to fraudulent websites or virus or malware. However, this file may also be used by viruses or malware to prevent users from updating antivirus software or accessing specific websites. In addition, you can modify the hosts file to forcibly specify the website to the correct IP address, so as to access those sites that cannot be accessed for some reason. In addition, hosts files are often used for cracking and activation of some software. The principle is to prevent the software from automatically connecting to the official server to verify that the activation information is correct. Www.2cto.com 2. Modify the Hosts file of Windows 7. method 1. Improve the user's permission to operate the Hosts file. 1. If you directly modify and save the hosts file under normal circumstances, even if the operation is performed as an administrator, the user is prompted to have no operation permissions, such as: 2. You can improve the user's operation permissions on the Hosts file. The specific method is as follows: right-click the Hosts file, select properties, and click the "Security" tab. Select the user account currently logged on and click "edit". In the displayed permission settings page, select the current user again, select "Full Control" or "modify", and click "Apply. 3. After the settings are complete, you can modify the Hosts file! Method 2: Copy and replace the Hosts file www.2cto.com. In addition to improving the permission, there is also a simpler method: Copy A Hosts file to another location, then, make the changes you want in the copied Hosts file. After the operation is complete, move the copy of the Hosts file to the original Hosts file directory. Then, you will be prompted to overwrite the file. click confirm to overwrite it! Method 3: Access to a lower operating environment and perform operations in the same way as other problems with Operation permissions. Access to a lower operating environment can solve such problems well, for example, if you enter Windows 7 security mode or PE system, you can enter Windows 7 security mode by pressing the F8 key on the keyboard as follows, in the displayed Windows 7 Advanced startup options, select "safe mode" (select by using the arrow keys on the keyboard and press Enter to confirm). Then, you can modify and save the Hosts file!
Author's floor-to-ceiling windows