Granting access to only one domain ?

Discussion in 'Site & Server Administration' started by Rivmedia, Sep 28, 2009.

  1. #1
    Hi Guys this one is way beyond me and im not even sure if its possible.

    Ill start a little story so you can see what i want , Basically i want to display a script on a site however i want to do it through an iframe so the script is running on a separate domain, HOWEVER is there away for only the site i choose to be able to access this script via iframe, so if someone physically types the domain into a search engine it will give the forbidden , or if someone trys to use the same iframe ?

    Thanks for any help on this
     
    Rivmedia, Sep 28, 2009 IP
  2. MikeDVB

    MikeDVB Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you include it via <?php include() ?> or something similar then you can use a .htaccess directive to only allow that IP address to pull the file otherwise it's going to show up as the end-user's IP.

    Beyond including it via PHP and then setting only the including server to be able to access it, I don't know of a better way.
     
    MikeDVB, Sep 28, 2009 IP