The magic of Windows hosts file

The file location is different for different systems. My computer may not be a native 64-bit system because my computer does not have the system64 folder, so my host is in the following path. In fact, you can search in the windows directory.
C:\Windows\System32\drivers\etc
1. The role of hosts is to speed up the computer to resolve the domain name micro "database"
2. Write ip at least one space domain name
3. Magical 1, since the computer first finds whether there is a corresponding host file Domain name, then we can define a domain name by ourselves to point to a certain address, and reach the fake domain name to enter the website. Everyone knows that the domain name is for the convenience of memory, so as long as the software is installed on someone else’s computer and then the fake domain name is set, others can also access it server.
4. Magical effect 2. Block the website. If the ip is set to 0.0.0.0, the website will not be displayed normally if you visit the website through the domain

Guess you like

Origin blog.csdn.net/qq_35189120/article/details/83745045