Win7 system changes the host file to the URL steering method

  
Today, Xiaobian wants to introduce to you in the win7 system by changing the host file to achieve the URL to turn or block the URL.
This aspect will be more mysterious for ordinary users. Xiaobian first talk about the use of host files: Hosts is a system file with no extension, which can be opened with tools such as Notepad. Its role is to use some common URLs. The domain name establishes an association with its corresponding IP address. When the browser enters a URL, the win7 system first checks whether the URL exists in the host file. If there is a system, the system will point to the IP pointed to by the URL. And open, if there is no such URL, the entered URL will be resolved through the DNS server in the normal way.
Through the above brief introduction, I believe that everyone has a certain understanding, with this file we can use it to block some URLs or point to other IP, or local IP to achieve the purpose of turning or shielding, let's explain the operation method.
1, we open the C: windowssystem32driversetc folder according to the path, and then find the host file;
2, use the right mouse button to click, in the open mode, select Use “ Notepad & rdquo; to open, open the following icon ; (If you open the system prompts no permissions, you can get permission first)

3, we enter a 127.0.0.1 space at the bottom of the document, you want to block the URL such as (baidu.com);

4. If you want to redirect the URL, you can replace 127.0.0.1 with the target IP address. Finally, we close the file and save it.
5. At this time, if we input the baidu.com website, the win7 system will automatically resolve to 127.0.0.1 native IP, naturally can not open any web page.
Through the above explanation, presumably everyone has a certain understanding of the usage of the host, can also achieve more functions
small stickers: when you open a URL and find that the open page is not the normal page, but also Can check if the host file has been changed

Copyright © Windows knowledge All Rights Reserved