Php referrer works or not?

Posted by Camran on Stack Overflow See other posts from Stack Overflow or by Camran
Published on 2010-06-09T16:45:39Z Indexed on 2010/06/09 16:52 UTC
Read the original article Hit count: 226

Filed under:
|
|
|
|

I need to know the referring server for a page on my site.

Is there any safe method to check where the user "came" to the page FROM?

I tried uploading this to my server, but this wont output anything at all when I write the adress to the file in the browsers adress bar:

    <?php echo $_SERVER['HTTP_REFERER']; ?>

I need to check this in order to display a link on the page or not...

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript