PHP Classes

HTTP_REFERER IE Problem

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  HTTP_REFERER IE Problem  
Subject:HTTP_REFERER IE Problem
Summary:I tried to get HTTP_REFERER in IE, i am getting Blank result
Messages:2
Author:johan albert
Date:2009-08-16 06:08:46
Update:2009-08-16 21:45:14
 

  1. HTTP_REFERER IE Problem   Reply   Report abuse  
Picture of johan albert johan albert - 2009-08-16 17:44:39
I'm bulding a web site and I do not want others to link to my pages. I can use on every sinle page the http_referer to detect who's the referer and decide if I have to give access or not...some peoples are using javascript to redirect there visitors to my site.

Problem is if other sites redirect visitors using javascript and the visitor browser is Internet Explorer, i am getting blank http_referrer.

I tried...

$HTTP_REFERER = getenv("HTTP_REFERRER"); getting blank in IE only

$HTTP_REFERER = $_SERVER("HTTP_REFERRER"); getting blank in IE only

Can you help me to solve my problems.

johan

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.