How to make Windows 7 only accessible to specified web pages

  
        Some time ago, bank customers opened an experience zone, which was to let everyone experience their online banking, but found that many users went through Baidu on the computer and Weibo, but they only wanted users to access their online banking system.

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. I thought of the way to modify the hosts file, so that the DNS domain name resolution sites point to 127.0.0.1, as follows:

127.0.0.1 www.baidu.com

127.0.0.1 www.QQ.com

......

However, it is impossible to write all the domain names again, some people ask to use 127.0.0.1 * Can you? The answer is no, because the hosts file is not Wildcards are supported.

so this method theoretically possible, but the actual feasible.

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 mask 95%) users, because

most users just remember the domain name, can not remember the server IP).

2. modify the hosts file, specify the domain name is not prohibited. For example: 61.135.169.125 www.baidu.com, at this time, when visiting www.baidu.com, it is not through the DNS server, but directly mapped to 61.135.169.125.

above methods you can try, although not a perfect solution, but it is really quite simple.
Copyright © Windows knowledge All Rights Reserved