1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Iframde Killer Code and Giving Permission...

Discussion in 'Blogging' started by Joeusa, Sep 22, 2011.

  1. Joeusa

    Joeusa Junior Member

    Joined:
    Sep 2, 2010
    Messages:
    169
    Likes Received:
    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
     
  2. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    832
    Likes Received:
    864
    Occupation:
    Cleaning servers
    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: Sep 23, 2011
  3. nesterdwarf

    nesterdwarf Regular Member

    Joined:
    May 30, 2008
    Messages:
    276
    Likes Received:
    539
    Location:
    State of Misery...er, Missouri...
    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
     
  4. Joeusa

    Joeusa Junior Member

    Joined:
    Sep 2, 2010
    Messages:
    169
    Likes Received:
    22
    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.
     
  5. Joeusa

    Joeusa Junior Member

    Joined:
    Sep 2, 2010
    Messages:
    169
    Likes Received:
    22
    noone?
     
  6. Fuggz

    Fuggz Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 25, 2010
    Messages:
    583
    Likes Received:
    600
    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.
     
  7. bigvito21

    bigvito21 BANNED BANNED

    Joined:
    Jun 17, 2011
    Messages:
    272
    Likes Received:
    8
    Does anybody have an iframe killer blocker code, to stop iframe from being bust
     
  8. Fuggz

    Fuggz Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 25, 2010
    Messages:
    583
    Likes Received:
    600
    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.


     
  9. bigvito21

    bigvito21 BANNED BANNED

    Joined:
    Jun 17, 2011
    Messages:
    272
    Likes Received:
    8


    I'm on a mission to find that code, If I get it, traffic+rank=$$$$$$
     
  10. Fuggz

    Fuggz Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 25, 2010
    Messages:
    583
    Likes Received:
    600
    I've got a few different ones, let me know(PM) the site you want to iframe and I will give you the code.
     
  11. bigvito21

    bigvito21 BANNED BANNED

    Joined:
    Jun 17, 2011
    Messages:
    272
    Likes Received:
    8
    traffic+rank=$$$$$$