News
About GC
Forums
FWP Adkilling
Super Script
Hijack Pop-Ups
Link To Us
PW Cracking
News Archive







| Adframes |

Getting Rid of AdFrames on Free Web Pages

AdFrames are frames that appear on free webpages and serve a neverending stream of banners and crap, and can't be scrolled off-screen. AdFrames on free webpage providers are insidious in that they are embedded in not the page but the browser window itself, latching on like little parasites and coming along for the ride for as long as that browser window remains open. Even if you surf off the ad-laden site in search of greener pastures, SURPRISE! The constantly-reloading adframe tags along and forces ads onto any other sites you surf in that window, above and beyond all the ads that already litter the new page.
 
Removing the adframes on your free web space

Getting rid of adframes Anywhere

     This script should get rid of adframes on any server:
    ...
    <SCRIPT>
    <!--
    if(top!=self)
    top.location.href=self.location.href;
    //-->
    </SCRIPT>
    ...
    Put it anywhere on the page you want to be cleansed of adframes, and it will pop the main page out of its shackles!

    If you have a provider with paranoid sysadmins (ahem again, Xoom) that scan for this type of code, use this instead:
     
    ...
    <SCRIPT>
    <!-- eval(unescape("%69%66%28%74%6f%70%21%3d%73%65%6c%66%29%7b%74%6f%70%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%3d%73%65%6c%66%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%3b%7d%0a"));
    //-->
    </SCRIPT>
    ...
    (The part between the comment tags is all one line; but you may have to scroll to get all of it)
    This is essentially the same script as above, but encrypted into escape characters to help deter detection during your FWP's paranoid scanning. Special thanks to The Omega for the idea and code :)

    This script works on sites that use adframes such as:

    • 321website.com
    • come.to/surf.to (whatever redirectors use adframes)
    • com-unity.net
    • Fiberia
    • freeservers.com (8m.com/etc.) Has changed to inline banner ads
    • Intercosmos
    • Sitio.de
    • Spacelynx
    • virtual-power.net (Virtual Power)
    • Visual Cities
    • Webjump
    • Wowsites
    • Xoom


    To provide the viewer with the option of breaking frames but not actually breaking them automatically, use the following script instead:
    ...
    <SCRIPT>
    <!--
    if(top.location.href!=self.location.href)
    document.writeln('<A HREF="'+self.location.href+'" TARGET="_top">Break the frames!</A>');
    //-->
    </SCRIPT>
    ...
    This will insert a Break the frames! link on any page that is trapped inside a frameset.

Special notes on:
Xoom.com
    The XoomBar, or "DoomBar" as it is sometimes called, contains a load of promotions and a sponsor button and sits in a frame atop your site. The slimy thing about it is the deceptive manner in which it was implemented: As quoted from the Xoom TOS, "we don't put ads on member pages--they are your creation and they should stay that way." When I came across this line, I immediately sent the webmaster an email asking for confirmation (this was in March of '98) because I, for some dumb and irrational reason :) didn't trust them. The webmaster had this to say: "That does indeed mean no ads on member pages....Xoom makes money off ads on it's own pages and off the sales of our Web Clip CD-ROMs to our members and our partners members." In a newsgroup posting, a Xoom sysadmin said that they will never put ads on member pages.

    Makes you wonder how the XoomBar ad doesn't qualify as advertising on member pages? We-e-e-el....it was a deceptive trick of wording: by Xoom's definition, since the ads are loaded into a separate frame instead of the actual page's HTML they technically don't count as being "on" member pages, and so they are technically not lying. For their cheap deception, though, I award a Jackass Award to xoom.com, and the anti-adframe scripts above to its burned members.

    Be careful, though; there are no second chances at Xoom. If you get caught with this script, your page is gone, no warning, no questions asked, for good. (You can't re-signup the same username; TOS violation accounts are locked out.) To make it less conspicuous, you can put the script into a .js file, and call it from the pages with a <script src=...> tag. Since Xoom is known as a vigilant TOS enforcer and I've had reports of member-sites being scanned for naughties and anti-adframe  scripts, you're strongly encouraged to use the encrypted script above instead of the plaintext one.

    ** If you're a webmaster maintaining links to a page on Xoom, you can spare your visitors the evils of the adframe by linking the page with a URL like this:

      http://members.xoom.com/_XMCM/username/page.html
    Note, Xoom changes the _XMCM part from time to time to deter this activity, so you may have to watch for that. Change username of course to the member account name, and page.html is the page you're linking to.