Frame breakout stopper

Discussion in 'PHP' started by desmondhaynes, Feb 21, 2010.

  1. #1
    Programatically, Do you have a way of stopping a Frame Breakout?

    (I have a site like digg.com and am using frames to show the topics. some sites break the frames, and remove the history of the browser, which I want to stop).

    (if you don't know what frame breakout is, ignore this post please).
     
    desmondhaynes, Feb 21, 2010 IP
  2. jcwebhole

    jcwebhole Active Member

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    use curl intead of frames... or do iframe within another iframe... most framebreakers out there only reference top.window once...
     
    jcwebhole, Feb 21, 2010 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #3
    If the iframed page is yours, you can consider adding javascript to check to see its opened within an iframe (by checking its not viewed directly) and then redirect them to the error page using javascript's window.location.

    Too make sure they don't simply disable javascript, add no script tags just under the javascript; containing a meta refresh tag pointing to the error page. (so either way - with or without javascript, if they don't view the page within an iframe they get redirected to your error page).
     
    danx10, Feb 22, 2010 IP
  4. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #4
    Instead of directly loading the webpage in a frame, Use CURL to fetch the webpage like a proxy script removing the js that breaks the frame.
    Thanks :)
     
    JEET, Feb 22, 2010 IP
  5. bigvito19

    bigvito19 Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Can someone help me with the CURL, How to use curl to stop a webpage from framebreaking
     
    bigvito19, Mar 20, 2012 IP