Framekiller: for advertisers who don't want their pages iframed

jenzkc

Banned
Jul 29, 2007
1,941
26
0
Code:
<script type="text/javascript">
if (top != self) top.location.replace(self.location.href);
</script>
or


Code:
[B]<script script type="text/javascript">
if(top.location != document.location)
top.location = document.location;
</script>[/B]

also works for removing digg bars.

wrong forum, whoops.
 


How about a solution to preventing this from happening?

I'm going to go with it's impossible.
that's what the code does. put that on your page and people won't be able to iframe it (unless the visitor has javascript disabled which only happens like 2% of the time).
 
I'm surprised more advertisers haven't done this, especially the email submit advertisers. They wouldn't have to scrub as much if they weren't dealing iframers.