No matter what purpose you use, setting the web page to only access the specified page is completely possible. 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 a 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
127.0.0.1
……
However, it is impossible to write all the domain names. Someone asks 127.0.0.1 * Can you? The answer is no, because the hosts file does not support wildcards.
So 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 point, you will find that it is not possible to open a browser to access any web page through a domain name (but it can be done via IP, but this can at least mask 95%) 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.125 At this point, when accessing, it is not through the DNS server, but directly mapped to 61.135.169.125.
In fact, this setting is very useful for users who have children at home, can control the website of children and can control time and the like. The above methods can be tried, although not a perfect solution, but it is very simple.
1. Find my computer on the desktop, then right click - Properti
Can 64-bit Win7 successfully install AutoCAD2006 SP1? The small-scale test is successful! 64-bit Win
1. Press the key combination (win key + R) on the win7 desktop to open the run window, then enter ld
local group policy editor window, we can achieve a lot of functions, we should have some understandi
Win7 comes with multimedia software - how powerful Windows Media Center is in
Not commonly used, four functions that Win7 easily ignores
What should I do if I forget my Mysql password under Win7 system?
Five steps to teach you to get back the win7 system password
Analysis of the importance of routers in win7 system and the factors to be considered for purchase
The fastest way to recover files in Windows 7 system
What if Win7 can't identify the optical drive?
About the default theme package storage in Windows 7
Win7 64-bit Ultimate Edition system mouse right button no response can not pop up menu how to do
The most complete win7 system installation method
Basic questions about configuring VPN+NAT in Windows XP system
How does Win10 clear the history of cmd running?
Two ways to set the wait time for the boot menu in Windows
Win10 notebook plugged in the power cord but can not charge how to solve
How does Win8 change the computer name? Win8 modify the computer name step
Detailed methods and steps for Win10 to empty the clipboard
Six tips to improve the speed of XP system
Win10 upgrade assistant login failure how to do win10 upgrade assistant can not log in solution
What should I do if the NumLock key of the Win7 keypad is invalid?