How to allow Windows 7 to access only the specified webpage? 1. Modify the Hosts file. The hosts file is located in the Windows/system32/drivers/etc/directory to control domain name access. I think of a way to modify the hosts file so that DNS domain name resolution of these websites all point to 127.0.0.1, as follows: 127.0.0.1 www.rzxt.com 127.0.0.1 http://www.xitongshoucang.com /...... However, it is impossible to write all the domain names. Can someone ask 127.0.0.1? The answer is no, because the hosts file does not support wildcards. Therefore, this method is feasible theoretically, but not practically. Method 2 control through Hosts file and network settings 1. in the network settings, set the DNS server to 127.0.0.1, the network connection status to> TCP/IPv4-> properties-> preferred DNS server-> 127.0.0.1, you cannot access any web page through a browser through a domain name (but you can use an IP address, but at least 95% of users can be blocked, because most users only remember the domain name, but cannot remember the Server IP address ). 2. Modify the hosts file to specify the domain name that is not prohibited. For example: 61.135.169.125 www.rzxt.com. When you access http://www.xitongshoucang.com/, the dnsserver is not used, but directly mapped to 61.135.169.125. You can try the above method. Although it is not a perfect solution, it is indeed very simple.