How does the Win7 system prohibit access to a website?

  

Usually computer Internet access is a situation of visiting a website, but some websites contain viruses or some bad information, we will choose to refuse to visit the website, but sometimes we will accidentally visit the website, then how to prohibit Visit a website? In response to this problem, Xiaobian and everyone share the way the Win7 system prohibits access to a website.

Win7 system prohibits access to a website:

1, first to find the hosts file, the location of the hosts file in the "C:\\Windows\\system32\\drivers\\etc\\hosts" file lower clamp;

2, after finding the hosts file, right-click & ldquo; host & rdquo; open the menu, select & ldquo; with Notepad open the file & rdquo ;, as shown in FIG;

3, take Sina as an example, open the hosts file, add a line at the bottom of the list "127.0.0.1 www.sina.com.cn", and then press “ Ctrl + S & rdquo; save changes, if the permissions are not enough, can first copy hotsts modifications to the desktop, and then overwrite the original file can be;

4, at this time we are in the address bar of the browser & ldquo; www.sina.com.cn & rdquo; on Can't access, if you want to cancel, you can delete the record in the host, or add “#” commented out.

These are the Win7 system block access to a site's method, this method is to achieve the purpose of prohibiting access a Web site through the host file, a friend in need may wish to try.

Copyright © Windows knowledge All Rights Reserved