What is the Hosts file?
Hosts is a system file without extensions, you can use Notepad and other tools to open, its role is to use a number of commonly used Web site domain name and its corresponding IP address to establish an association "database", when the user in the browser to enter a need to log in to the URL, The system will first automatically find the corresponding IP address from the Hosts file, once found, the system will immediately open the corresponding Web page, if not found, then the system will be submitted to DNS domain name resolution server IP address resolution
Where is the Windows xp/2003/vista/2008/win7 user Hosts file location?
Under the "C:\WINDOWS\SYSTEM32\DRIVERS\ETC" directory
How does the Hosts file open
Hosts file is a file with no suffix name we can use the Windows Notepad file to open it, as shown in the following figure
Effect after the host file is opened
Hosts file How to specify IP access to the specified Web site
Below we take www.111cn.net as an example, when the user wants to access www.111cn.net is automatically pointing to IP 1.1.1.1 we have the following operation in the Hosts file
1.1.1.1 Www.111cn.net (Note that there are spaces before IP and domain names)
Then we can save the host file
Note: we must remember to close the browser and then reopen the browser before it can take effect oh, otherwise it may visit the original IP address of the site .