PHP 4.1.0/Apache 1.3.22/RH Linux 7.1
I am using HTTP_REFERER to get the page URL that refers a visitor to a certain page.
I have successfully used two different formats to retrieve the refering URL.
Format 1.>>>
$Click_Referrer = getenv(HTTP_REFERER);
Format 2.>>>
$Click_Server = $HTTP_SERVER_VARS["HTTP_REFERER"];
Both work fine when the refering page is within the same domain like so....
page "www.domain1.com/index.html" refers to "www.domain1.com/somepage.html" (WORKS FOR BOTH FORMATS)
However, when linking from a separate domain, the example 1 shows a strange output (See below) and the example 2 shows nothing.
Ex. Not Working> page "www.domain1.com/index.html refers to "www.domain2.com/someotherpage.html
Format 1 SHOWS the following as the referrer
http://66.33.90.117:2086/scripts/command
when it should be
http://www.domain1.com/index.html
and
- Shows nothing as the referrer. It is blank.
Can anyone offer any ideas as to what may be happening? Is there an exception when referring from one domain to another domain? Is this a PHP or Apache configuration issue?
Thanks.