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:
· 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 .
· 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".
· 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.
· 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.
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.
· 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.
· 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.
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.
· 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.