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

Bypass "frame" protection

Discussion in 'HTML & JavaScript' started by NOLOGIN, May 2, 2014.

  1. NOLOGIN

    NOLOGIN Newbie

    Joined:
    May 2, 2014
    Messages:
    3
    Likes Received:
    0
    Location:
    C:\WINDOWS\System32
    Hi everyone,
    I don't know if I'm posting in the right section but here's the thing:

    I have web page in which are placed several iFrame objects, that open several websites.
    But some sites that I want to open within the iFrame object doesn't show at all or show a message like "The author of that website does not authorize his website to be shown in a frame."
    I have, so far, tried some PHP tag like readfile(); file_get_contents(); but they do the trick only once, not twice ... So I can't use them several times.

    So my question is: how, with any programming languages that exist in this planet, I can bypass this protection and show the content of the website within a "frame" (or a <div>, or other)?


    NL.
     
    Last edited: May 3, 2014
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,566
    Likes Received:
    11,026
    Occupation:
    Pusillanimous Knitter
    Location:
    Buenos Aires
    If your intention is that the framed site to be normally working for your site 's visitors... you can't - it 's a browser security policy. The site sends a header that says "fuck frames, top only" and the browser does the trick.

    If you just want the site to look like its there, even a screenshot would do.
     
    • Thanks Thanks x 1
  3. NOLOGIN

    NOLOGIN Newbie

    Joined:
    May 2, 2014
    Messages:
    3
    Likes Received:
    0
    Location:
    C:\WINDOWS\System32

    Thanks for the reply.
    Well, then is there any possibilities of opening the desired websites in new tabs WITHOUT triggering the pop-up blocking system of browsers, and all this automatically as soon as the visitor enters my webpage?
     
  4. NOLOGIN

    NOLOGIN Newbie

    Joined:
    May 2, 2014
    Messages:
    3
    Likes Received:
    0
    Location:
    C:\WINDOWS\System32
    M'ok never mind, I solved my problem, I just used the .load function from Ajax and the site shows in a #div, so no iFrame detection, works like a charm.