Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Apache , HTTP_REFERER and iframes

    Hi,

    I would like to know if this is possible:
    I need to be sure that if I have iframes into my homepage, these iframes will not be able get my url, I mean, the 'parent' url(with php , Js, flash or widget code)
    I found with php code but I would like to be sure about all the languages and I was thinking in apache, because I saw it uses {HTTP_REFERER} and control access features.
    any ideas? thanks in advance!

  • #2
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, any ideas? can we use apache for this kind of things? thanks!

  • #3
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,316
    Thanks
    29
    Thanked 280 Times in 274 Posts
    Quote Originally Posted by cerge View Post
    I would like to know if this is possible:
    I need to be sure that if I have iframes into my homepage, these iframes will not be able get my url, I mean, the 'parent' url(with php , Js, flash or widget code)
    I found with php code but I would like to be sure about all the languages and I was thinking in apache, because I saw it uses {HTTP_REFERER} and control access features.
    As far as I'm aware, when an iframe element used, the referer header is sent to the nested page with the URL of the parent page. So, the nested site would be able to get your URL via the referer header, which is accessible via Apache (%{HTTP_REFERER}), JavaScript (document.referrer), and PHP ($_SERVER['HTTP_REFERER']).
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •