Ingeniously set up two ways for Win7 to access only the specified webpages.

  

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, let The browser only displays the specified web page, so how is this done? 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. Someone asked if you can use 127.0.0.1*? 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 DNS server to 127.0.0.1, network link status->TCP/IPv4-> attribute in network settings ->Priority 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 mask out 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 win7 system access the specified webpage. This is a good idea. Whether it is the need of work or the need to create personality in life, it is a work worth learning. Interested users may wish to use it. Give it a try.

Copyright © Windows knowledge All Rights Reserved