Iframde Killer Code and Giving Permission...

Joeusa

Junior Member
Joined
Sep 2, 2010
Messages
169
Reaction score
22
Hi,

I am using the following iframe killing script in my site:

<script language='JavaScript' type='text/javascript'>
if (top.location != self.location) top.location = self.location;
</script>

I am doing this to redirect google images traffic directly to my content page and it is all good.

But i have noticed that StumbleUpon.Com traffic is also being redirected and according to their terms, it is bad and my site can be banned from their index, and i do not want this as i have been getting more than 1k traffic from their system per day, some time even much more.

So i am seeking for a iframe killer code with exception module so i can let stumbleupon.com's iframe to work on my site.

Please help if you have any idea..

Thanks in advance
 
Maybe Firefox plugin NoScript can help ? Edit: Forget it, I didn't read carefully. I thought you want to make setup in your browser...
 
Last edited:
Is the SU traffic sending a referer of any kind? If so, should be able to do a simple if statement and filter it out...

ND
 
Is the SU traffic sending a referer of any kind? If so, should be able to do a simple if statement and filter it out...

ND

if the member is not using their toolbar and using their web based system, then they click `stumbe` link on stumbleupon.com site and they are redirected to other sites with a small frame on top of each site.
 
Basically you need to tell it to redirect only if the top window is the google images site.

Code:
if( top == self && location.href.indexof( "[URL="http://apps.facebook.com/myapp"]http://www.googleimagesURLhere.com[/URL]" ) == 0 )   location.href = "[URL="http://www.facebook.com/pages/mypage"]http://www.YourSiteHere.com[/URL]";

You could also make it work by telling it to break frame only if it is not iframed by SU, but this code should work.
 
Does anybody have an iframe killer blocker code, to stop iframe from being bust
 
Ooh I don't know if you will find that here, it's pretty horrible for some top websites, you can really mess with things.


Does anybody have an iframe killer blocker code, to stop iframe from being bust
 
Ooh I don't know if you will find that here, it's pretty horrible for some top websites, you can really mess with things.



I'm on a mission to find that code, If I get it, traffic+rank=$$$$$$
 
I've got a few different ones, let me know(PM) the site you want to iframe and I will give you the code.
 
Back
Top