Page 1 of 1

HTTP_REFERER - not working when called from swf

Posted: Mon May 30, 2005 6:53 am
by rcmehta_14
Hi guys,

I have a strange problem. I have a file "temp.php" with a flash object within it. The flash object is set to call a link on it's "click" event.

My problem is that upon clicking on flash, the called page (say temp1.php) has $_SERVER[HTTP_REFERER] = NULL...... ie. it is not setting prooperly..

Strange thing is that it is working fine with Mozilla Firefox but it is not working in Internet Explorer.

Any help is appreciated..!!

Thanks,
Ritesh

Posted: Mon May 30, 2005 7:55 am
by neophyte
'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
http://us2.php.net/reserved.variables

Posted: Mon May 30, 2005 4:42 pm
by hongco
yeah, if a new windows popup from a link, it won't show referer on IE.

Posted: Thu Sep 07, 2006 5:21 am
by crossland
Is there any way round this, even if means resorting to something like Javascript?

My requirement is to be able to get the URL of the referring site, even if it is from a target="_blank" link.

Thanks

Posted: Thu Sep 07, 2006 7:56 am
by feyd
Referrer information is wholely unreliable. Some proxies and routers strip the information from requests. Browsers can be set to not give the information out too. Javascript is not a solution either. While you may catch a few more pieces of information through it, you cannot guarantee 100%.