A simple and practical way to screen ads and malicious Web sites

Source: Internet
Author: User
Keywords Masks malicious websites simple and practical web ads

Many times we will need to block some websites or ads, similar to XX website, under http://www.aliyun.com/zixun/aggregation/18960.html "> Trojan virus" website, or cracked software. We can use some software shielding, I am here with the Windows system from the Hosts file to block. This file is somewhat similar to a compact version of DNS, is a can do IP and domain name corresponding relationship table, in the resolution domain name, the system will check DNS before checking this file, in the WIN7 system this file is located under the path C:\WINDOWS\SYSTEM32\DRIVERS\ETC.


In Windows7, there are some differences between this file and XP, XP can be opened directly with Notepad, but the windows7 need to modify a little bit and then open with Notepad. Right click on the Hosts file-click on "Properties"-Select the "Security" tab-click "Edit" to select the current user group and direct "√" after the "Full Control" permission is clicked; Click OK, pop-up warning dialog box




Then use Notepad to open the Hosts file, in which input information "127.0.0.1" need to screen the Web site "", pay attention to IP write front, url write back, 127.0.0.1 replace into 0.0.0.0 is also possible, after the completion of the save exit. I have to screen Baidu as an example for everyone to do a demo, below we look at the effect.




But this is only shielded www.baidu.com this URL, Baidu's other web site can still be used, and need to be in the browser to close the time to add Hosts file, otherwise the browser has been opened does not work, need to restart the browser. Finally, for security reasons, it is best to restore the permissions of the hosts file to the default after the operation is completed.

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.