Re: [PHP] $_SERVER['HTTP_REFERER']
On Sun, October 8, 2006 1:05 pm, Peter Lauri wrote: I am trying to track where the people entered a unique page from (developing an affiliate system). I have been using the $_SERVER['HTTP_REFERER'] to track this and record it on a affiliate entrance of the web site. However, that is not tracking all clicks. Only some of them have. I assume some of the links are not from a traditional a/a link. Your assumption is incorrect. Some browsers do not provide HTTP_REFERER. Some users configure their browser not to. Some proxy servers mask or alter HTTP_REFERER Pretty much, in all respects, HTTP_REFERER is about the least reliable thing you could have chosen, except maybe IP address. Is there any other way to do this? Sure! Just have your affiliates include a unique code in their URLs and use $_SERVER['PATH_INFO'] to find it. See my .sig for a very nice example. :-) -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER['HTTP_REFERER']
HTTP_REFERER is not a reliable way of capturing a remote address. Sometimes the client does not set it at all. On 08/10/06, Peter Lauri [EMAIL PROTECTED] wrote: Hi guys, I am trying to track where the people entered a unique page from (developing an affiliate system). I have been using the $_SERVER['HTTP_REFERER'] to track this and record it on a affiliate entrance of the web site. However, that is not tracking all clicks. Only some of them have. I assume some of the links are not from a traditional a/a link. Is there any other way to do this? Best regards, Peter Lauri www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site -- http://www.web-buddha.co.uk
Re: [PHP] $_SERVER['HTTP_REFERER']
Peter Lauri wrote: I am trying to track where the people entered a unique page from (developing an affiliate system). I have been using the $_SERVER['HTTP_REFERER'] to track this and record it on a affiliate entrance of the web site. However, that is not tracking all clicks. Only some of them have. I assume some of the links are not from a traditional a/a link. Is there any other way to do this? Check the archives - this has come up a couple of times just recently. The usual way is to create URLs for referers in the following style... http://domain.com/r/joesblog Then you get /r/ requests routed to a referral tracker (several options for that), map joesblog to a referrer, log the hit and redirect. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER['HTTP_REFERER'] does not work
On Friday 05 November 2004 01:13, Michelle Konzack wrote: [snip] Then I have the same problem with echo $_SERVER['SERVER_NAME']; which tell me every time the ServerName but not the public ServerAlias. WHY ? Look up UseCanonicalName in the Apache docs and see if this relates to your problem. Does anyone have an example, which I can put at the beginning of my Web-Pages which allow or deny access to the HTML-Page ? I need to protect my php-Scripts, because I have had already a DoS by calling my php-scripts several tenthousandth times. The surest way to prevent unauthorised access is to require a login. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Nature is by and large to be found out of doors, a location where, it cannot be argued, there are never enough comfortable chairs. -- Fran Lebowitz */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER[HTTP_REFERER]
Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wednesday 07 July 2004 05:43 pm, Shaun wrote: Hi, Can someone tell me why echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].'br'; Produces $_SERVER[HTTP_REFERER] = Is this a problem with my server configuration, if so is there a SERVER variable I can use instead? It could be the server. I never fully investigated this, but IIS 5/5.1 doesn't report an HTTP REFERER The last time I checked this out, was on w2k/iis5 and winxp/iis5.1 (pre sp1) maybe over a year ago. Could someone verify/deny this, so I know that Im not crazy ;) Thanks for your replies, after lots of investigation it appears that it is just my laptop that won't disply the variable, maybe because I am using Norton Firewall? Whatever the reason, is there an alternative server variable? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER[HTTP_REFERER]
Shaun a écrit : after lots of investigation it appears that it is just my laptop that won't disply the variable, maybe because I am using Norton Firewall? Possible. The REFERER HTTP field is OPTIONAL -- See http1.1 spec (rfc2616) or this list archives. So it's not a field anyone should rely upon. More and more software (firewall, proxies, privacy tools) just dont send it, or send it modified (same thing for the UserAgent field, which can even be modified on several browsers) reason, is there an alternative server variable? No. It can be empty or even (easily) faked. Christophe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER[HTTP_REFERER]
On Thu, 08 Jul 2004 11:49:24 +0200, Christophe Chisogne [EMAIL PROTECTED] wrote: Shaun a écrit : after lots of investigation it appears that it is just my laptop that won't disply the variable, maybe because I am using Norton Firewall? Possible. The REFERER HTTP field is OPTIONAL -- See http1.1 spec (rfc2616) or this list archives. So it's not a field anyone should rely upon. More and more software (firewall, proxies, privacy tools) just dont send it, or send it modified (same thing for the UserAgent field, which can even be modified on several browsers) reason, is there an alternative server variable? No. It can be empty or even (easily) faked. This is a variable that the client send you explicitly. Some firewall software blocks sending it. You can even send a fake value. Basically, you can't rely on it. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER[HTTP_REFERER]
Shaun wrote: Hi, Can someone tell me why echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].'br'; Produces $_SERVER[HTTP_REFERER] = Is this a problem with my server configuration, if so is there a SERVER variable I can use instead? Many thanks My guess is you didn't come to the page with that code on it from another page (ie a link of some kind), and if you did, the referer wasn't set by your browser. -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER[HTTP_REFERER]
On Wed, 7 Jul 2004 22:43:11 +0100, Shaun [EMAIL PROTECTED] wrote: Hi, Can someone tell me why echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].'br'; Produces $_SERVER[HTTP_REFERER] = Is this a problem with my server configuration, if so is there a SERVER variable I can use instead? If you didn't get to the page by clicking on a link, then you won't have a referer. Also, you should use quotes around array keys: $_SERVER['HTTP_REFERER'] -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SERVER[HTTP_REFERER]
On Wednesday 07 July 2004 05:43 pm, Shaun wrote: Hi, Can someone tell me why echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].'br'; Produces $_SERVER[HTTP_REFERER] = Is this a problem with my server configuration, if so is there a SERVER variable I can use instead? It could be the server. I never fully investigated this, but IIS 5/5.1 doesn't report an HTTP REFERER The last time I checked this out, was on w2k/iis5 and winxp/iis5.1 (pre sp1) maybe over a year ago. Could someone verify/deny this, so I know that Im not crazy ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php