Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Is Using The Server Referer Be Reliable


  • Please log in to reply
2 replies to this topic

#1 piskie

piskie

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,098 posts
  • Location:Cornwall

Posted 11 December 2011 - 07:47 AM

Does anyone know if I can reliably use the Linux Server Referer to make decissions within a php script ??
I am only interested in arivals on the page from another page within the site.
I have therefore already eliminated the direct arivals.

I am using:
CODE
$referer = $_SERVER['HTTP_REFERER'];

Depending where the visitor came from I am making decissions as to what happens within a page.
However, a thought occurs to me that maybe not all browser etc configurations may leave the Referer footprint.
Anyone shed any light on this please.

#2 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,018 posts
  • Location:Blackpool UK

Posted 11 December 2011 - 08:01 AM

QUOTE
that maybe not all browser etc configurations may leave the Referer footprint.
Correct, the referer is an optional field in the HTTP request headers, and is turned off by some Internet security packages, so use it, but don't rely on it being populated.

#3 piskie

piskie

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,098 posts
  • Location:Cornwall

Posted 18 December 2011 - 05:05 AM

Thanks Chris that's what I suspected.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!