Pin Me

How to Block Ads in IE8

written by: Donna Buenaventura•edited by: Bill Bunter•updated: 2/4/2011

There are many ways to block Ads while you browse using Internet Explorer 8 and this article will describe the steps in using InPrivate and Hosts file to block ads.

  • slide 1 of 4


    Blocking advertisements using IE8’s InPrivate Filtering and a Hosts file is quite easy but before we go to the guide, let us describe the two:

    • InPrivate Filtering is a new privacy feature in Internet Explorer 8 that you can use block tracking contents or ads in getting information from you or your computer.
    • A Hosts file is a list of websites that is not allowed to communicate in your computer. By default, the internet Hosts file in Windows do not have list of websites to block. There are many free Hosts file providers (example: MVPS Hosts File, hpHOSTS) that you can choose to replace the default Hosts file.

    Note that many ads can cause infection because rogue and malware creators or their affiliates can inject bad content to it. This is called hijacked ads and malvertisements.

  • slide 2 of 4

    Blocking Ads in IE8 using InPrivate Filtering

    Sample of blocked ads using InPrivate Filtering To block tracking ads or web contents while using Internet Explorer 8, you will need to enable InPrivate More blocked contents using InPrivate Filtering Filtering. Next are you have to decide if IE8 will automatically block ads in collecting information from you or you will manually block them.

    Note that the default setting of InPrivate is to display blocked or list of tracking ads or content is set to 10 sites. You can change this to 3 up to 30, which means at least 3 or 30 websites must share the same content before it is listed in the InPrivate Filtering feature of IE8 and you can allow or block it.

    An example of InPrivate Filtering that IE8 have added is the screenshot at the left. Notice that there is option for you to block or allow. At the right, I browse many other websites and you will see that InPrivate Filtering has more to display.

    If you want to store a copy of blocked contents or ads, click “Export ” button which will be saved in .xml format. If you have more than one computer or if you will need to restore this blocked contents (ads, scripts), you can use the “Import” option in InPrivate Filtering so the next time you’ll use IE8’s InPrivate Filtering, IE8 will automatically block these ads or contents.

  • slide 3 of 4

    Using Hosts file will block ads and malware links

    Another easy way to block ads so that IE8 will not display ads and block malicious or rogue websites is by using a Hosts file.

    A Host file is either configured to connect to or which is computer’s local host - in other words, your computer. If you will download and replace the existing internet Hosts file in Windows, Mac or Linux systems, any malicious or websites that is known serving ads will fail to load in IE8 or any other browsers. The location of the internet Hosts file in Windows is in:

    Windows XP, Vista and Windows 7: C:\WINDOWS\SYSTEM32\DRIVERS\ETC

    Windows 2000: C:\WINNT\SYSTEM32\DRIVERS\ETC

    Examples of HOSTS file entries:

    When you visit a website that is included in your Hosts file, IE8 will block it. IE8 will only display the content of the site you visited but not the ads.

    Browsing using IE8 InPrivate Filtering and HOSTS file will not only prevent ads or malicious sites but will also make IE8 to load the webpage quickly which means you will not be distracted by any third party ads which can be malicious or will track your surfing habits!