2levelsabove Posted April 7, 2010 Share Posted April 7, 2010 Under what circumstances will a web user not provide referrer information? We have several users that registered but had no referrer id. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/197899-php-referrer/ Share on other sites More sharing options...
br0ken Posted April 7, 2010 Share Posted April 7, 2010 They could use a browser add on that doesn't send the HTTP_REFERER value. This would cause the PHP variable $_SERVER['HTTP_REFERER'] to be empty. In your script, if this value is empty you could try $_SERVER['HTTP_FORWARDED_FOR']. If they are using a proxy then this value will contain their IP Quote Link to comment https://forums.phpfreaks.com/topic/197899-php-referrer/#findComment-1038543 Share on other sites More sharing options...
2levelsabove Posted April 7, 2010 Author Share Posted April 7, 2010 Cool that makes sense. Any stats on how many user browsers on average would not have a referrer ? Quote Link to comment https://forums.phpfreaks.com/topic/197899-php-referrer/#findComment-1038583 Share on other sites More sharing options...
br0ken Posted April 7, 2010 Share Posted April 7, 2010 After a quick Google I found no stats but take a look at your own data and see how often it happens there. Quote Link to comment https://forums.phpfreaks.com/topic/197899-php-referrer/#findComment-1038587 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.