How does the Win7 system block browser advertisement pages?

  

When we use the browser to surf the Internet, we often pop up some advertisement pages, which makes us bothered. In this case, what method can we use to block the browser ad page? The answer is of course ok. Let's take a look at the way Win7 system blocks the browser's advertising page. Interested friends come together to raise the position.

Operation steps (to shield Sina website as an example):

1. First find the hosts file. In Win32 32-bit system, the location of the hosts file is in "C:\\Windows\\" Under the System32\\drivers\\etc” folder, as shown.

2, right-click the hosts file, select the Open option and select & ldquo in the open mode; notepad & rdquo ;.

3, after entering the use Notepad to edit mode, we will want to shield IP on our website and a web site is not input into, as shown. Xiaobian uses 127.0.0.1, this is the address of this machine.

4, after the addition is complete click & ldquo; File & rdquo; & rarr; & ldquo; Save & rdquo ;, choose a save location, small choice of location for the desktop. Note that the name of the file at this time should be written as “hosts”.

5, a & ldquo appears on our desktop; hosts.txt & ldquo; file, we will rename it, to remove the suffix.

6, copy the resulting file to the directory where the hosts file, which is & ldquo; C: \\ Windows \\ System32 \\ drivers \\ etc & rdquo ;, overwrite the original file.

7, then we in the browser's address bar & ldquo; www.sina.com.cn & rdquo; we will find that we have been unable to enter the home, successfully shielding.

Note:

1, to unmask, then just delete the corresponding entry in the corresponding article or add currently & rdquo; # & ldquo; can be.

2, the reason can not be saved directly is that Windows does not allow direct modification of the hosts file, and ordinary users do not have permission to save the file in the directory where the hosts are stored, so it can only be modified by overwriting.

The above is the way Win7 system blocks browser ad pages, it may be a bit complicated, I don't know if you learned it?

Copyright © Windows knowledge All Rights Reserved