Using AJAX to circumvent ad blockers

Discussion in 'AdSense' started by Xitanto, Aug 13, 2006.

  1. #1
    http://ajaxload.info/

    This site is using some form of trick to display an adsense block whether or not a user has Adblock or a similar ad blocking program installed.

    What's the trick? I cannot find anything. And does it involve modifying the code? :|
     
    Xitanto, Aug 13, 2006 IP
  2. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #2
    <div id="advertisement">
    <div id="adsense">
    <h2>Advertisement</h2>
    </div>
    </div>
    from http://ajaxload.info/js/generate.js
    function google() {
    var iframe=domEl('iframe','',[['name','google_ads_frame'],['src','http://pagead2.googlesyndication.com/pagead/ads?client
    =ca-pub-3073868596887719&dt=1154116537062&lmt=1154116536&format=180x150_as&output=html&url=
    http%3A%2F%2Fwww.ajaxload.info%2F&color_bg=AFD118&color_text=FFFFFF&color_link=FFFFFF&
    color_url=647E00&color_border=E1F97B&ad_type=text&cc=100&u_h=1024&u_w=1280&u_ah=949&
    u_aw=1280&u_cd=32&u_tz=120&u_his=2&
    u_java=true&u_nplug=28&u_nmime=113'],['allowtransparency','true'],['frameborder','0'],['scrolling','no']]);
    iframe.frameBorder=0;
    $('adsense').appendChild(iframe);

    }

    edit: var iframe= is in one line
     
    AtanasYanev, Aug 13, 2006 IP
  3. Xitanto

    Xitanto Peon

    Messages:
    434
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Does that technically edit the code?
     
    Xitanto, Aug 13, 2006 IP
  4. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Yup, as far as I know - this is just a hack, not official code for adsense..
     
    AtanasYanev, Aug 13, 2006 IP
  5. Xitanto

    Xitanto Peon

    Messages:
    434
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    =| Therefore against google's TOS.
     
    Xitanto, Aug 13, 2006 IP