There are a lot of pages on the website for us to browse, but sometimes our computer does not want people to browse certain pages, such as do not want to play 4399 games and so on. Or, more broadly, do not want the site to browse any Web pages. At this point we need to go to the simple set.
1
You need to change the hosts file if you want to keep the page from being browsed
The Hosts file is the file that controls what our computer reads when it reads the site's IP address. If the Hosts file does not make changes to the site then it will go to the Internet to find, if there will be read the local, at this time we only need to change the hosts file, we can not access the site of the computer.
2
The Hosts file is located in the windows/system32/drivers/etc/directory
3
To make certain sites inaccessible, you can add them under the Hosts file:
127.0.0.1 www.baidu.com
127.0.0.1 www.qq.com
4
To keep all sites open, follow these settings
Set the DNS server to 127.0.0.1 in Network settings, network link state-> Tcp/ipv4-> Properties-> Preferred DNS server->