This is a discussion on http_referer within the PHP Language forums, part of the PHP Programming Forums category; Hi! I'm using $_SERVER['http_referer'] to see which site the visitors on my site is coming from. It works ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi!
I'm using $_SERVER['http_referer'] to see which site the visitors on my site is coming from. It works OK, but as we all now, not all sites give http_referer a value, i.e. miniclip.com. What I DON'T understand is how my web-statistics program (awstats) can tell me that a lot of the visitors on my site comes from miniclip.com. How can awstats know, and http_referer don't? // ojorus |
|
|||
|
On Jun 27, 10:11 am, "ojorus" <ojo...@hotmail.com> wrote:
> Hi! > I'm using $_SERVER['http_referer'] to see which site the visitors on my site > is coming from. It works OK, but as we all now, not all sites give > http_referer a value, i.e. miniclip.com. > What I DON'T understand is how my web-statistics program (awstats) can tell > me that a lot of the visitors on my site comes from miniclip.com. How can > awstats know, and http_referer don't? > > // ojorus It's not the website that decides whether or not to provide the referer (sic). The browser determines whether or not to send it. |
|
|||
|
"ZeldorBlat" <zeldorblat@gmail.com> skrev i melding news:1182953857.665568.320550@u2g2000hsc.googlegro ups.com... > On Jun 27, 10:11 am, "ojorus" <ojo...@hotmail.com> wrote: >> Hi! >> I'm using $_SERVER['http_referer'] to see which site the visitors on my >> site >> is coming from. It works OK, but as we all now, not all sites give >> http_referer a value, i.e. miniclip.com. >> What I DON'T understand is how my web-statistics program (awstats) can >> tell >> me that a lot of the visitors on my site comes from miniclip.com. How can >> awstats know, and http_referer don't? >> >> // ojorus > > It's not the website that decides whether or not to provide the > referer (sic). The browser determines whether or not to send it. > ah, sorry. my mistake! :-) |
|
|||
|
ojorus wrote:
> "ZeldorBlat" <zeldorblat@gmail.com> skrev i melding > news:1182953857.665568.320550@u2g2000hsc.googlegro ups.com... >> On Jun 27, 10:11 am, "ojorus" <ojo...@hotmail.com> wrote: >>> Hi! >>> I'm using $_SERVER['http_referer'] to see which site the visitors on my >>> site >>> is coming from. It works OK, but as we all now, not all sites give >>> http_referer a value, i.e. miniclip.com. >>> What I DON'T understand is how my web-statistics program (awstats) can >>> tell >>> me that a lot of the visitors on my site comes from miniclip.com. How can >>> awstats know, and http_referer don't? >>> >>> // ojorus >> It's not the website that decides whether or not to provide the >> referer (sic). The browser determines whether or not to send it. >> > ah, sorry. my mistake! :-) > > it might also do reverse DNS lookups on IPs in the logs? |