homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

SERVER['HTTP REFERER'] no longer any use?

 12:09 am on Feb 5, 2013 (gmt 0)

I have a script that runs based on the page/site that referred the user to that page.

20 out of 400+ visitors actually ran the script. SERVER['HTTP REFERER'] apparently returned no value for the majority of them.

I have Firefox (Mac and Windows), Safari, IE and Chrome. Only my Mac Firefox browser didn't send the referer information when I tested the script so I thought it would be pretty useful.

20/400 doesn't sound useful.

Google Analytics must have something that can get the information? They seem to know every website the users have come from?



 1:08 am on Feb 5, 2013 (gmt 0)

If you found 20 on "HTTP REFERER", I'd be really surprised.

Check your apache logs if they log referrers, if they do , you can crosscheck what your script sees with what your web server saw.

HTTP_REFERER is not 100% reliable: you basically get what the browser choses to send you. Add-ons like RefControl for Firefox allow users control over what the browser sends to whom.

Ref: [php.net...]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved