Windows 7 uses host to shield specified URLs or pop-up advertisements

Source: Internet
Author: User

1. Can I create a host on almost all computers? Find the host file in the C: \ windows \ system32 \ drivers \ etc \ folder on the computer.

2. Right-click and select notepad as the open mode.

3. the interface shown in the following figure is displayed. We pull it to the bottom of the window and enter 127.0.0.1 + space + the URL you want to block in another line. If you need to enter multiple URLs, remember to start another line each time.

Then save it. If the host cannot be saved, we can refer to the following method to solve the problem.

Method 1:

Disable anti-virus software of the 360 category and modify the settings so that the files cannot be saved. For example, if 360 has some security software protection measures, the hosts file is automatically restored to the default state, so the hosts file cannot be saved.

Method 2:

Right-click the hosts file and choose Properties> Security> edit to set the user to full control.

Method 3:

Copy the hosts file to the desktop (or other paths), edit and save the file, copy the modified hosts file to the original path, and replace the original hosts file. The system will prompt you to continue the operation only after the administrator permission is required. Follow the prompts and click continue to replace the original hosts file.

Method 4:

As an administrator, click start -- run, enter cmd, and then enter notepad c: \ windows \ system32 \ drivers \ etc \ hosts. Press enter to open the hosts file in notepad mode, in this case, you can directly edit and save the settings.

Now we have finished introducing host shielding for specified websites or pop-up advertisements. If you like it, you can block more websites, if you don't want Baidu to open it on your computer, we can modify 127.1.1.1 www.baidu.com, so that Baidu can access your local computer.

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.