Cleverly set up two ways for Win7 to access only specified web pages

  
Some companies will set the system to access the specified webpage in order to prevent employees from browsing other webpages; or some users want their own win7 system to be more personalized, so that the browser only displays the specified webpage, then how to complete such an operation Let's take a look.
Method 1: Modify the Hosts file The
hosts file is located in the Windows/system32/drivers/etc/directory and is used to control domain name access. Modify the hosts file, let the DNS domain name resolution these sites point to 127.0.0.1, as follows:
127.0.0.1www.xitongzhijia.net
However, it is impossible to write all the domain names again, some people ask 127.0. 0.1* Can I? The answer is no, because the hosts file does not support wildcards.
This method is theoretically feasible, but it is not practical.
Method 2: Control through Hosts file and network settings
1. Set the DNS server to 127.0.0.1 in the network settings, network link status->TCP/IPv4-> Properties-> Preferred DNS server ->127.0.0.1
At this time, you will find that it is not possible to open any browser to access any webpage through the domain name (but it can be done by IP, but this can at least block 95% of users, because most users only Remember the domain name, it is impossible to remember the server IP).
2. Modify the hosts file to specify domain names that are not prohibited. For example: 61.135.169.125www.xitongzhijia.net, at this time, when visiting www.xitongzhijia.net/, it is not through the DNS server, but directly mapped to 61.135.169.125.
Let the win7 system access the specified webpage. This is a good idea. Whether it is the need of work or the need to create a personality in life, it is a work worth learning. Interested users may wish to give it a try. Let's go.

Copyright © Windows knowledge All Rights Reserved