Connecting Tech Pros Worldwide Forums | Help | Site Map

Are They Lying: $_SERVER["HTTP_REFERER"] Question

Good Man
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi There

A client of mine has some banner ads placed on the net. Instead of relying
on the sites the ads are posted on tell us how many clicks they are
getting, we wanted to track the number ourselves.

I settled on using $_SERVER['HTTP_REFERRER'] to determine what referred the
user to our page. Sure enough, when testing, it all works (ie: i click the
ad on 'sample.com', which takes us to my page, and sure enough in our
tracking database i see 'sample.com' has had the visit count increased by
one.) I am looking for the string "sample.com" to make sure that the count
goes up whether or not the person visited sample.com via
http://www.sample.com or http://sample.com/

My question is: is $_SERVER['HTTP_REFERRER'] reliable? Essentially, a
place my clients have advertised with have said '80 people clicked your ad
this month' while our own stats show that only 15 people clicked it.

Is my method of tracking good/reliable enough to call them liars, or is my
method not too dependable?
Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Good Man <heyho@letsgo.com> wrote:[color=blue]
> My question is: is $_SERVER['HTTP_REFERRER'] reliable?[/color]

Short: No

Slightly longer: with the referer you depend on the client and
all involved proxies to supply information.

Yttrium
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question



"Good Man" <heyho@letsgo.com> a écrit dans le message de news:
Xns967464D9B8FBsonicyouth@216.196.97.131...
[color=blue]
> My question is: is $_SERVER['HTTP_REFERRER'] reliable?[/color]

Hi,

Of course not..
You can change it easily,( ie : in firefox, exists a plugin which you can
choose to active or not http_referrer..)
That depends on the browser..



( Sorry for my english, caus' Im French :-( )
--
http://www.danstesyeux.com



Dave
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Good Man (heyho@letsgo.com) decided we needed to hear...
<snip>[color=blue]
> My question is: is $_SERVER['HTTP_REFERRER'] reliable? Essentially, a
> place my clients have advertised with have said '80 people clicked your ad
> this month' while our own stats show that only 15 people clicked it.
>
> Is my method of tracking good/reliable enough to call them liars, or is my
> method not too dependable?[/color]

Not really a PHP question, but anyways no, HTTP_REFERRER is not that
reliable. It *should* be filled in, but e.g. some ISP caches (such as
AOLs) block it and some personal firewalls (Norton is one IIRC) also
block it - you can configure Norton to send it to certain sites but
its off by default.
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)
ECRIA Public Mail Buffer
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Let me clarify -

Sure, the $_SERVER["HTTP_REFERRER"] can easily be changed - but don't even
try to tell me that 80% of users modify their referrer because they can -
that's just plain nonsense...

On a similar note, if 80% of web surfers are using a proxy, then I am Mickey
Mouse!

So... someone is probably taking you for a ride.

ECRIA
http://www.ecria.com



ECRIA Public Mail Buffer
Guest
 
Posts: n/a
#6: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


They lie.

ECRIA
http://www.ecria.com


Ivan Omelchenko 608308824
Guest
 
Posts: n/a
#7: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


ECRIA Public Mail Buffer ÐÉÛÅÔ:[color=blue]
> Let me clarify -
>
> Sure, the $_SERVER["HTTP_REFERRER"] can easily be changed - but don't even
> try to tell me that 80% of users modify their referrer because they can -
> that's just plain nonsense...
>
> On a similar note, if 80% of web surfers are using a proxy, then I am Mickey
> Mouse!
>[/color]
Hi, Mickey! :)
that for sure - in my country at least 80% using a proxy server

Living in Ukraine.
ECRIA Public Mail Buffer
Guest
 
Posts: n/a
#8: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Of course, the acid test is to take the $_SERVER["HTTP_REFERRER"] out of the
equation.

Create a page that is not indexed or linked from any other sites and then
change the target of your ad to point to this page. You would probably want
to put a separate hit tracking script on this page followed by a simple
header redirect to your main page. Then, since ONLY clicks from the ad site
will result in hits on this special page, it will be very easy to determine
if their claim is exaggerated or not.

Please post your findings if you decide to do this...

ECRIA
http://www.ecria.com


Philip Olson
Guest
 
Posts: n/a
#9: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


BTW it's HTTP_REFERER not HTTP_REFERRER :-)

Good Man
Guest
 
Posts: n/a
#10: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


"ECRIA Public Mail Buffer" <ngsremovemail@ecria.com> wrote in
news:d8k69k$6f4$1@murdoch.acc.Virginia.EDU:
[color=blue]
> Of course, the acid test is to take the $_SERVER["HTTP_REFERRER"] out
> of the equation.
>
> Create a page that is not indexed or linked from any other sites and
> then change the target of your ad to point to this page. You would
> probably want to put a separate hit tracking script on this page
> followed by a simple header redirect to your main page. Then, since
> ONLY clicks from the ad site will result in hits on this special page,
> it will be very easy to determine if their claim is exaggerated or
> not.
>
> Please post your findings if you decide to do this...
>
> ECRIA
> http://www.ecria.com[/color]

i'm upgrading/redoing their website this month, and indeed this is what I
will do for all of their banner advertisements. good idea, i'll let you
know what happens in the future...
ECRIA Public Mail Buffer
Guest
 
Posts: n/a
#11: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Rats, you're right. This always gets me...

dictionary.com says:

1 entry found for referer.
<World-Wide Web> A misspelling of "referrer" which somehow made it into the
HTTP standard. A given web page's referer (sic) is the URL of whatever web
page contains the link that the user followed to the current page. Most
browsers pass this information as part of a request.
(1998-10-19)

ECRIA
http://www.ecria.com

"Philip Olson" <philipolson@gmail.com> wrote in message
news:1118679099.596335.33860@g49g2000cwa.googlegro ups.com...[color=blue]
> BTW it's HTTP_REFERER not HTTP_REFERRER :-)
>[/color]


Malcolm Dew-Jones
Guest
 
Posts: n/a
#12: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Good Man (heyho@letsgo.com) wrote:
: Hi There

: A client of mine has some banner ads placed on the net. Instead of relying
: on the sites the ads are posted on tell us how many clicks they are
: getting, we wanted to track the number ourselves.

: I settled on using $_SERVER['HTTP_REFERRER'] to determine what referred the
: user to our page. Sure enough, when testing, it all works (ie: i click the
: ad on 'sample.com', which takes us to my page, and sure enough in our
: tracking database i see 'sample.com' has had the visit count increased by
: one.) I am looking for the string "sample.com" to make sure that the count
: goes up whether or not the person visited sample.com via
: http://www.sample.com or http://sample.com/

: My question is: is $_SERVER['HTTP_REFERRER'] reliable? Essentially, a
: place my clients have advertised with have said '80 people clicked your ad
: this month' while our own stats show that only 15 people clicked it.

: Is my method of tracking good/reliable enough to call them liars, or is my
: method not too dependable?

In addition to what others have said, if the pages are cached anywhere
along the route (gateways and/or proxies) then you won't see all the
traffic.


--

This space not for rent.
Bernie Cosell
Guest
 
Posts: n/a
#13: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Good Man <heyho@letsgo.com> wrote:

} I settled on using $_SERVER['HTTP_REFERRER'] to determine what referred the
} user to our page. ...
}
} My question is: is $_SERVER['HTTP_REFERRER'] reliable? Essentially, a
} place my clients have advertised with have said '80 people clicked your ad
} this month' while our own stats show that only 15 people clicked it.

The short answer, as others have commented, is "no". But the longer answer
is that by and large it *IS* reliable: not very many folk know how to, or
have the facilities to, *change* the REFERER -- there are lots of
filters/firewalls/plugins, etc, that'll _block_ REFERER. so I'd say that
to first order, if you *GET* a REFERER, then it is _most_likely_ correct
[especially if you look for the specific REFERERs that you are expecting]
but you'll be left with the problem of how to sort out hits that come in
with no REFERER.

/Bernie\

--
Bernie Cosell Fantasy Farm Fibers
bernie@fantasyfarm.com Pearisburg, VA
--> Too many people, too few sheep <--
Samuel (lets dot monroe at gmail dot com)
Guest
 
Posts: n/a
#14: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


A good amount of spanish connections are behind a certain ISP's massive
proxy server too.

It's a long story.

John Dunlop
Guest
 
Posts: n/a
#15: Jul 17 '05

re: Are They Lying: $_SERVER["HTTP_REFERER"] Question


Good Man wrote:
[color=blue]
> A client of mine has some banner ads placed on the net. Instead of relying
> on the sites the ads are posted on tell us how many clicks they are
> getting, we wanted to track the number ourselves.[/color]

'Clicks', a marketroid's term, isn't it?

--
Jock
Closed Thread