Iframe Security Panel? Hiding a Page from a Browser? But not from an iframe view?

Discussion in 'Programming' started by Melvinng, Jan 29, 2008.

  1. #1
    How can I hide a page or redirect a user to another page, if they access a page on my site that I don't want them to?

    I have a site that iframe a portion of a site/video of a security panel from another site's admin panel. The problem is that a viewer can easily look at my source code, find the site that I iframed and enter my security panel, where they can control stuff there. How can I make it so that when a viewer enters that site they find in the source code they will end up on a blank page? Instead of the admin panel that I partially iframed?

    Is there some some of php code or html or css hack that I can use? :)
     
    Melvinng, Jan 29, 2008 IP
  2. HurryHost.com

    HurryHost.com Banned

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    password the directory?
     
    HurryHost.com, Jan 29, 2008 IP
  3. Melvinng

    Melvinng Peon

    Messages:
    850
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, but it will also block the iframe? I need it so that the iframe can access it but no people going directly to the link the iframe provides.
     
    Melvinng, Jan 29, 2008 IP
  4. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #4
    A better method would be to use PHP to 'crawl' the Admin link, as PHP can easily login to an admin page, it can then match the parts of the page needed, and return it - Without showing your password.

    All in all, a much better method.

    And before you ask 'How?' - Go lookup 'Client URL' (cURL). It's very easy to use!

    ;)

    Dan
     
    Danltn, Feb 2, 2008 IP
    Melvinng likes this.