[PHP] Re: HTTP REFERER
$HTTP_REFERER The address of the page (if any) which referred the browser to the current page. This is set by the user's browser; not all browsers will set this. -from the php documentation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: http referer problems
break it down. if ( $ef != 'nm' ) echo a : $efbr; else echo b : $ef br; if ( $HTTP_REFERER != 'http://www.globalhealth.org/news/article.php3?id=1526' ) echo c : $HTTP_REFERERbr; else echo d : $HTTP_REFERERbr; now you can see where the bug is. -- Chris Lee [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message BB6D932A42D6D211B4AC0090274EBB1DA0F1E8@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1DA0F1E8@GLOBAL1... For some reason, the following if statement isn't working. Maybe I haven't had enough coffee to drink or maybe I've had too much - what am I missing? if ($efa != nm || $HTTP_REFERER != http://www.globalhealth.org/news/article.php3?id=1526;){do this);} Thank you, Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: http referer
[EMAIL PROTECTED] (Jack) wrote: 1. (*) text/plain Dear folks I was told that http referer can tell me where the user come from. But it does not work all the time, is there anything else that work better than this? Jack [EMAIL PROTECTED] Love your I should work if the user have a referer, a user has only a referer if the user comes from another page to your page, because it dont work might be because the user entered your page directly? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: http referer
On 11-Jul-01 Henrik Hansen wrote: [EMAIL PROTECTED] (Jack) wrote: 1. (*) text/plain Dear folks I was told that http referer can tell me where the user come from. But it does not work all the time, is there anything else that work better than this? Jack [EMAIL PROTECTED] Love your I should work if the user have a referer, a user has only a referer if the user comes from another page to your page, because it dont work might be because the user entered your page directly? You wont get a referer on: 1. Header redirect 2. Direct entry (as above) 3. anonymous proxy filters out the headers 4. user install Privacy-protect software 5. The browser doesn't support it. From one of my larger sites: mysql select count(*) from stat; +--+ | count(*) | +--+ | 1391545 | +--+ 1 row in set (0.00 sec) mysql select count(*) from stat where urlid=5343192248684061102; +--+ | count(*) | +--+ | 348162 | +--+ 1 row in set (1.69 sec) mysql select (348162 / 1391545) *100.0; +---+ | (348162 / 1391545) *100.0 | +---+ | 25.02 | +---+ 1 row in set (0.00 sec) mysql select conv(PASSWORD('[NO REFERRING URL]'),16,10); ++ | conv(PASSWORD('[NO REFERRING URL]'),16,10) | ++ | 5343192248684061102| ++ 1 row in set (0.00 sec) So 25% of my traffic is not sending HTTP_REFERER ... YMMV. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: http referer
this is why I want to know if there is anyone know the better way than http_referer? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: 'Henrik Hansen' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 5:00 AM Subject: RE: [PHP] Re: http referer ...or the site uses frames, ...or browser does not support HTTP_REFERER ...or... HTTP_REFERER is VERY unreliable. It is not server-side anymore, it is the data sent to you by browser in person, and with all the variety of browsers and the ways to navigate - it becomes uncontrollable. Maxim Maletsky -Original Message- From: Henrik Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 5:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: http referer [EMAIL PROTECTED] (Jack) wrote: 1. (*) text/plain Dear folks I was told that http referer can tell me where the user come from. But it does not work all the time, is there anything else that work better than this? Jack [EMAIL PROTECTED] Love your I should work if the user have a referer, a user has only a referer if the user comes from another page to your page, because it dont work might be because the user entered your page directly? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: http referer
[EMAIL PROTECTED] (Don Read) wrote: On 11-Jul-01 Henrik Hansen wrote: [EMAIL PROTECTED] (Jack) wrote: 1. (*) text/plain Dear folks I was told that http referer can tell me where the user come from. But it does not work all the time, is there anything else that work better than this? Jack [EMAIL PROTECTED] Love your I should work if the user have a referer, a user has only a referer if the user comes from another page to your page, because it dont work might be because the user entered your page directly? You wont get a referer on: 1. Header redirect 2. Direct entry (as above) 3. anonymous proxy filters out the headers 4. user install Privacy-protect software 5. The browser doesn't support it. I though every browser supported it, do you have an example on one that does not? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: http referer
I though every browser supported it, do you have an example on one that does not? I Opera the user can choose to disable the use of referer /Soeren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: http referer
[EMAIL PROTECTED] (Soeren Nielsen) wrote: I though every browser supported it, do you have an example on one that does not? I Opera the user can choose to disable the use of referer ohh I did not know that, maybe be because I never tried it :) now i know :) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: http referer [ stats !!! ]
Statistics, hard data - yeah! Thanks, Don! Kirk -Original Message- From: Don Read [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:54 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: http referer [ stats !!! ] mysql select conv(PASSWORD('[NO REFERRING URL]'),16,10); ++ | conv(PASSWORD('[NO REFERRING URL]'),16,10) | ++ | 5343192248684061102| ++ 1 row in set (0.00 sec) So 25% of my traffic is not sending HTTP_REFERER ... YMMV. Regards, -- Don Read -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]