Making iframes secure

Discussion in 'Programming' started by mattriz, Sep 27, 2012.

  1. #1
    Hi all. Is there anyway to make an iframe secure and prevent it from being hacked/injected. I know a few years ago it was more common for sites to be hacked this way but we need for one of our clients to display a secure iframe on his site with content from another website, but his concerned about this iframe injection.

    If anyone can assist me with this i'd appreciate it. If you know that they can be secured and locked down to prevent injections i'd love to know how this can be done.

    Kind regards,

    Matt.
     
    mattriz, Sep 27, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Shure, check where the iframe goes automaticly. You could do it with PHP and have a whitelist of sites that may be used in the iframe ;)
     
    EricBruggema, Sep 28, 2012 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Sure, that's easy... Don't use iframes, they were deprecated for a REASON.
     
    deathshadow, Sep 28, 2012 IP