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







| Killing Ads |
INDEX :

Why ?
History
1 - Pop-ups
1.1 - Removing the Pop-ups
1.2 - Killing pop-ups when they appear
2 - Banners
3 - Make stuff invisible (banners, counters, buttons, text, etc)
4 - Frames
5 - Remove end
6 - Avoiding rule scanners
7 - Make sure users can reach you page

Why ?

  • To let amateur webmasters have complete control of what they sites look like.
  • I'm tired of seeing publicity I didn't asked for and closing pop-ups that I didn't asked to see.
  • Having to show some advertisement spoils good webdesign.

  • Most of the time the servers are slow enough without ads.

  • Webmasters from sites that have publicity don't get any $ for their publicity.

  • People are trying to offer a service to the community and the only one that gets anything from it are the sponsors.

  • There's lots of software that blocks ads, by using this techniques viewers don't need to use that kind of software.

History:

Version 1.5 -> New techniques to remove banners added.
Version 1.2 -> Added namezero frame hidding in frames section.
Version 1.1 -> Added new popups removal technique that kills them all .

1 - Pop-ups :

1.1 - Removing the Pop-ups :

This technique makes the browser ignore the pop-up.

The pop-up is a javascript code, so if we surround the place where the server inserts this code with a "<noscript>" or a "<!-- //-->" (comment) tag the pop-up will be ignored.

Look at the example for the "<!--" (comment) tag:

<!-- Start code //-->
<NOSCRIPT>
<!-- <BODY> --> // the Decoy body tag, it can appear at the beginning of the head tag too
</NOSCRIPT>
<TITLE>Your Title Here</TITLE>
</HEAD>
<BODY> // The real body tag

This one works on tripod and is included in the source of this page. Look at the example for the <noscript> tag:

<NOSCRIPT>
<BODY>
</NOSCRIPT>

A Meta tag may be usefull when the server uses a </noscript> before the zone where they pop-up will be inserted, because the <noscript> technique is disabled:

<HTML>
<META popupssuck="
<HEAD>
<TITLE>Your Page Title</TITLE>
</HEAD>
<BODY>
<!-- your homepage-->

A simpler way in case you don't need to open any windows using javascript is to include this code in every page of the site.

<!-- Start code //-->
<SCRIPT LANGUAGE="JavaScript">
<!--
function open () {return true;} // this will redefine the open function.
//-->
</SCRIPT>

The jawascript method is used when the server inserts a </noscript> before the pop-up, this way the <noscript> trick won't work so if I insert a "<SCRIPT LANGUAGE="JawaScript">" (notice that jawascript can be anything, it's only convenience is looking like javascript) will disable the rest of the script.

<SCRIPT LANGUAGE="JawaScript"> // just insert this line before the place where the pop-up will be.
<!-- -->
</noscript>
<script language="JavaScript">

This script by "the_omega" allows the opening of all urls in new windows except one that contains the word popup.html .

<SCRIPT>
<!--
function ScreenIt(url,name,parm){
if(url.indexOf("popup.html")!=-1) return false;
return window.Xopen(url,name,parm);
}
window.Xopen=window.open;
window.open=ScreenIt;
//-->
</SCRIPT>

My version of the previous script will kill any popups by checking it's name, instead of a location, it's more accurate than the previous one. You must check you web provider to see the name of the window their javascript code will open, but normally is something that included "opup".

<SCRIPT>
<!--

function ScreenIt(url,name,parm)
{
if(name.indexOf("opup")!=-1) return false;
return window.Xopen(url,name,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
}
window.Xopen=window.open;
window.open=ScreenIt;
//-->

</SCRIPT>

Here is another script that does the same thing:

<script language="JavaScript">
<!--
function /*e*/;{
return false;
}
// -->
</script>

 

1.2 - Killing pop-ups when they appear :

When a pop-up name open it will have a name, what this script does is open a window with that name and closing it right after.
"w" is name of the window do open and close, this can be anything w is just an example.
To know the "Popupname" you must look at the code the server inserts in your page and get it there.
The window.focus() is optional, it will only make this window become active when the popup closes.

<!-- Start code //-->
<script language="JavaScript">
w=window.open("http://smog.cjb.net","Popupname","");
w.window.close();
window.focus();
<!-- End code //-->


2 - Banners :

If you need to remove a banner in a place of your choice use the make invisible technique, if the server inserts the code in the end of the document just use "remove end" of document technique. You can also replace the banner with the image you want.

If the banner is placed automatically on the beginning of the page, you can have a layer filling the space occupied by the ad. This banner can contain a image or a solid color background.

<LAYER top="27" name="top"><center>
<IMG SRC="http://smog.cjb.net/logo2.gif" width="490" height="95"></center>
</LAYER>

If the banner is a shtml code like

<NOSCRIPT>
<!--#geoguide-->
</NOSCRIPT>

if just on <noscript> tag isn't enough try repeating it <NOSCRIPT><NOSCRIPT><NOSCRIPT><NOSCRIPT><NOSCRIPT> this might work.

It's possible to change the banner to any image you want, your logo or maybe a 1x1 transparent gif .

Change the "src" property of the image by refering to the image number on the page, if the banner is on top it's number must be 0 if it's the last image on the page you must count all the images, or in case the banner has a "name" property you can replace the "images[0]" with the "name" value of the image. Just insert this script after the image you want to replace.

<script language="JavaScript">
<!--
document.images[0].src='banners_suck.gif';
-->
</script>

The decoy technique can be used with banners also, just surround the fake body tag with a <noembed><xmp> tag .

<noembed><xmp>
<BODY> // fake body tag
</xmp></noembed>
<body> //real body tage

If the banner comes in the form of a layer you can try to surround the decoy with a <NOLAYER> tag.

<NOLAYER>
<body>
</NOLAYER>

you can use cascading style sheets to remove banners but it won't avoid the users having to download them, it can only make them invisible. Just add this between your <head> tag and replace the height and width with the size of the banner you want to hide.

<style type="text/css">
<!--
IMG[height="60"][width="468"], IMG[height="60px"][width="468px"]{display: none}
-->
</style>

 


3 - Make stuff invisible (banners, counters, buttons, text, etc) :

This technique is possible using layers, the variables don't really matter the important this is the "visibility=hide" part.
Just add your invisible stuff to a layer like this:

<ilayer id="invisible" z-index="1" visibility="hide" >Your banners,counters, text here</ilayer>

The "Your banners,counters, text here" will be invisible to everyone viewing your page but not for their browsers.


4 - Frames :

This code checks for the existence of frames, if they exist the page where you put this code becomes the only page in the browser.

<script language=JavaScript>
if(top!=self){top.location.href=self.location.href;}
</script>

or have the first page of your site point to a second one with this code on the body:

<body onLoad="window.open('http://smog.cjb.net/html/index.htm','_parent')">

By opening in a _parent window the browser will go to the previous window in the history, this is the one just before the frames and open the site there.

Sometimes the location that FWP give you is just an alias to your real page location. They use this aliasing method to make users load a frame, if you know where the real page is located just make some redirector point there.

Just look at the xoom example

"http://members.xoom.com/_XOOM/username/" is your real page location and "http://members.xoom.com/username/" is the location they use to make viewers load the adframe.

To discover the real location of your site just press right mouse click on your page and look in the "info" panel.

Here is a special one everyone is looking for, namezero.com frame hidding. Here it goes:

You must Log In to your Control Panel and insert the code into the description field. This "buffer overflow" kind of trick also works for other redirectors that force a frame on your page. Just use the description field to complete the entire <html> field.

">
<head><frameset rows="100%,*" border=0 frameborder=0 framespacing=0 framecolor="#000000"><FRAME src="http://smogzer.net"><frame></frameset></html>


5 - Remove end :

Sometimes servers add stuff in the end of the pages, to remove it just place <!-- or <noscript> before the place where they're publicity is going to be, the <!-- comments the rest of the file making it only visible when viewing the source, the <noscript> is used if the ad comes in form of javascript, disabling it.


6 - Avoiding rule scanners :

Some servers scan .htm files for suspect code, spliting popups names is useful when escaping this scanners.

var Popup="po"+"pWind"+"ow"; window.onError=null; tasteful=window.open(newpage,wndname,"");

You should also encode your code in hexadecimal format. When it is encoded put it like this

<SCRIPT>
<!--
eval(unescape("your code in hex here"))
//-->
</SCRIPT>


7 - Make sure users can reach you page:

When/If the FWP services track you they may delete your pages and the usual viewers won't be able to know the next location of your site, so you better use redirectors. You can find a list of redirectors that don't use ads on my site.

With redirectors your site will look like http://gameconn.cjb.net , where cjb.net is the name of the redirector and gameconn is the name of my site.