How to enable Windows 7 system to access only the specified webpage

Source: Internet
Author: User

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.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.