Ads

adsense code

Friday, September 19, 2008

How to block ads on a website using any browser...


Today I come up with a Wikipedia article that gave me inspiration to this post: How to Block ads (like Adsense and Adbrite) on any website using any browser (Firefox or IE or any other browser under Windows).

The idea is simple : Redirecting the advertising website host name to another IP address, then you can't access it.


  1. How to do it?

    It's general (not only for Ads), you can block any website from showing on your computer on any browser.
    To do it, open the execute command, and type
    notepad C:\WINDOWS\system32\drivers\etc\hosts
    Then note pad will open a text file. You'll have to edit it.
    You can add as my host names you want. Normally, you should find the following
    127.0.0.1 localhost
    Leave this one in peace and add another line
    127.0.0.2 page2ad.googlesyndication.com
    After saving your file, you'll notice that Adsense ads don't show on any website.
    You can do the same for any other advertising website.

  2. How to get the host name of the advertising website

    Then you should have noticed that didn't put google.com/adsense or google.com in the host name. It's simple, because the host where Adsense gets its ads from isn't google.com but page2ad.googlesyndication.com

    To know it, right click on the Adsense (or any other ad), copy the link location (you don't have even to open it) and paste it in a note pad.

    Now you should see the host name page2ad.googlesyndication.com/blablabla
    The blablabla don't matter, we can put page2ad.googlesyndication.com or googlesyndication.com directly and we are done.

  3. What I really think!

    It's great to disable ads on a website, especially when they are noisy and heavy one. However my blog will really sucks if all my visitors blocks ads! I must then think of other ways of advertising.

No comments: