Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    anti frame buster

    recently i tried to iframe a certain site...but they are using the follwing
    frame bursting technique...

    <script type="text/javascript">
    if(top.frames.length > 0)
    top.location.href=self.location;
    </script>


    is there any method to over come this and to iframe the site???
    some one please help me...

    thanks in advance
    samvel

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Quote Originally Posted by samvel2609 View Post
    recently i tried to iframe a certain site...but they are using the follwing
    frame bursting technique...

    <script type="text/javascript">
    if(top.frames.length > 0)
    top.location.href=self.location;
    </script>


    is there any method to over come this and to iframe the site???
    some one please help me...

    thanks in advance
    samvel
    No. That is why they are using the technique.

  • #3
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    he he ...but i wanna break it...i m scratching my heads to break this thing

  • #4
    Regular Coder
    Join Date
    Apr 2009
    Posts
    244
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Hey samvel2609,

    This seems kind of crazy, and it probably won't work, but I'm just going to bring out out there. What if you were to take the entire rendered HTML from that site, store it as a big string on the client side, except removing that script in question from the string. Then in your page, put the string as an innerHTML inside your iframe.

    Mike

  • #5
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,373
    Thanks
    11
    Thanked 592 Times in 572 Posts
    some browsers let you re-define top and location, i know newer firefox explicitly prevents this though.

    if you have a server, you might try caja for a simple solution.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •