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

Heres A Working Anti-Iframe Breaker

Discussion in 'HTML & JavaScript' started by R G B, Dec 6, 2008.

  1. R G B

    R G B Newbie

    Joined:
    Oct 28, 2008
    Messages:
    17
    Likes Received:
    2
    I posted this as an answer to another thread and I kept seeing people post about having problems with iframe breakers so I'm just making this topic about it. I was looking for an anti-iframe breaker and found this solution on a site (NOT CODED BY ME).

    Site was:
    Code:
    http://www.steadyhealth.com/Web_Hosting_Anti_Frame_Breaker_solution_t53346.html
    Put this function between the head tags.
    Code:
    <script>
    function StopLoading()
    {
    if (!document.all)
    {
    window.stop();
    }
    else
    {
    window.document.execCommand('Stop');
    }
    }
    </script> 
    Then when you want to make an iframe include the function in it.
    Code:
    <iframe onload="StopLoading()" src="http://www.site.com"> 
    Tell me if you have any problems with it, I tested it and it works for me on shareapic. Hopefully it works for all/most other sites.
     
  2. tomksoft

    tomksoft Registered Member

    Joined:
    Oct 24, 2008
    Messages:
    71
    Likes Received:
    40
    Home Page:
    I am sorry to say that, but it does not work with Squidoo.
     
  3. digitalpower

    digitalpower BANNED BANNED

    Joined:
    Dec 16, 2008
    Messages:
    303
    Likes Received:
    69
    Has anyone created a better anti iframe breaker than this one?
     
  4. yx0sz

    yx0sz Newbie

    Joined:
    Jul 14, 2009
    Messages:
    5
    Likes Received:
    2
    Occupation:
    PPC, iFrame, CS
    Location:
    Earth ;)
    Home Page:
    I'll pay up to $2k for really good working Anti Iframe Breaker script in IE and FireFox.
     
  5. XoC--

    XoC-- Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 5, 2009
    Messages:
    211
    Likes Received:
    113
    Please correct me if I'm wrong but my understand is that with modern day browsers this is impossible?

    Javascript security has been carefully look at, onLoad="" will work only if it's your website that's being loaded (same domain) otherwise if you're showing a third party website this will not trigger any events.

    This is the same for quite a few other functions.
     
  6. blazed

    blazed Junior Member

    Joined:
    Aug 15, 2008
    Messages:
    178
    Likes Received:
    119
    pretty much right on... if you ever find an anti-iframe breaker that works then it's a temporary exploit that WILL be fixed in the next iteration of that browser..
     
  7. SHOwnsYou

    SHOwnsYou Registered Member

    Joined:
    Jun 21, 2009
    Messages:
    94
    Likes Received:
    94
    I have created an anti iframe breaker for some websites.

    Twitter doesn't work very well on it, but I've tested it with own site with an iframe breaker installed.
     
  8. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    That will never work on decent sites.
     
  9. yx0sz

    yx0sz Newbie

    Joined:
    Jul 14, 2009
    Messages:
    5
    Likes Received:
    2
    Occupation:
    PPC, iFrame, CS
    Location:
    Earth ;)
    Home Page:
    can u share it? :)
     
  10. youngguy

    youngguy Senior Member

    Joined:
    Apr 11, 2009
    Messages:
    1,053
    Likes Received:
    1,560
    Location:
    Hell
    make a php crawl a page and filter iframe breaker code is not a good way, what I want to do is make an anti-iframe-breaker in javascript from the window.top not a php script to crawl that page.