Hosts is a system file with no extension. It can be opened with tools such as Notepad. Its function is to establish a related "database" with some commonly used URL domain names and their corresponding IP addresses. When the user enters a browser in the browser, When you need to log in to the URL, the system will automatically find the corresponding IP address from the Hosts file. Once found, the system will open the corresponding webpage immediately. If it is not found, the system will submit the URL to the DNS domain name resolution server for IP address resolution. If we make a domain name change to it, then the computer will first read the domain name on the local server, so that as long as we deal with it, we can achieve the purpose of blocking harmful websites, thus effectively reducing the computer fishing. The threat of Trojan attack (of course, the effect of quick access)
Location of the hosts file: Find the Hosts file in the C:\\Windows\\system32\\drivers\\etc folder, open it with Notepad, first time http ://hi.baidu.com/%C9%F2%D1%F4%CB%B6%CA%F3
If you change the UAC settings of Windows, you may not be able to save it properly. In the case of two solutions
Solution One: Use WordPad to open and save. After I practice, using WordPad can modify and save the hosts file without enabling the user account.
Solution 2: Click Start Menu - All Programs - Accessories, find the Notepad option, right click to run as administrator, and then modify the hosts file.
Hosts is a system file with no extension, which can be opened with a tool such as Notepad. Its function is to establish a related "database" with some commonly used URL domain names and their corresponding IP addresses, when the user is in the browser. When you enter a URL that needs to be logged in, the system will automatically find the corresponding IP address from the Hosts file. Once found, the system will immediately open the corresponding web page. If it is not found, the system will submit the URL to the DNS domain name resolution server for IP address. Analysis.
1. Speed up domain name resolution
For websites that need to be visited frequently, we can improve the domain name resolution speed by configuring the mapping between domain name and IP in Hosts. Thanks to the mapping, when we enter the domain name computer, we can quickly resolve the IP without requesting a DNS server on the network.
2, convenient LAN users
In many units of the LAN, there will be servers available to users. However, since the DNS server is rarely set up in the local area network, when accessing these servers, it is necessary to input a hard-to-remember IP address. This is quite troublesome for many people. Now you can give these servers a name that is easy to remember, and then create an IP mapping in Hosts, so that when you access it later, just enter the name of the server.
3. Shielding Websites
A lot of websites now have a variety of plugins installed on your computer without the user's consent, some of which may be Trojans or viruses. For these sites we can use Hosts to map the domain name of the site to the wrong IP or IP of the local computer, so there is no need to access it. In Windows XP, the agreement 127.0.0.1 is the IP address of the local computer, and 0.0.0.0 is the wrong IP address.
If, in Hosts, write the following:
127.0.0.1 #Website to be blocked A
0.0.0.0 #Website to be blockedB
This way, when the computer resolves the domain names A and B, it resolves to the local IP or the wrong IP, and achieves the purpose of blocking websites A and B.
4. Smooth connection system
For Lotus servers and some database servers, if you directly enter the IP address during access, you can't access it. You can only enter the server name to access it. Then we configure the Hosts file so that the server name can be successfully connected.
My solution is to turn on the firewall in the system service. “Computer"
Because of the reason for playing games, the memory of the computer has been upgra
According to foreign media reports, Windows 7 and Windows Server 2008 R2 users recently rep
As we all know, Windows7 system has many fascinating places, such as: daily operation, easy to use;
Remove device drivers that are no longer used in Win7?
Use Windows 7 system files Inverse function
Windows 7 God mode similar to hidden shortcuts
Solve the problem of notebook under Win7 "Please consider replacing the battery" problem
The difference between Windows7 genuine piracy
Want to protect privacy, Win 7 makes U disk encryption easier
Make good use of Win7 character input gadgets Learning is no longer difficult
Windows 7 powerful preview feature
Windows Update update failure solution
How to release disk space in Win8
Solution for files that cannot be deleted
Win7 system page is always how to solve the card win7 system page can not open the solution
Win8 Mobile Broadband Unlock or Unblock
Win8 jailbreak and offline installation software tutorial
How to configure Windows 2008 Advanced Firewall
How Linux optimizes performance by modifying parameters
Five Wonders for Vista and Windows 7 Security "Adding Bricks and Tiles"
How to set the Win10 taskbar to be transparent? Win10 taskbar transparency adjustment method
How to add a second hard disk to a desktop computer under win7 system