473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

http_referer

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
Jun 27 '07 #1
3 4884
On Jun 27, 10:11 am, "ojorus" <ojo...@hotmail.comwrote:
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.

Jun 27 '07 #2

"ZeldorBlat" <ze********@gmail.comskrev i melding
news:11**********************@u2g2000hsc.googlegro ups.com...
On Jun 27, 10:11 am, "ojorus" <ojo...@hotmail.comwrote:
>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! :-)
Jun 28 '07 #3
ojorus wrote:
"ZeldorBlat" <ze********@gmail.comskrev i melding
news:11**********************@u2g2000hsc.googlegro ups.com...
>On Jun 27, 10:11 am, "ojorus" <ojo...@hotmail.comwrote:
>>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?
Jun 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John A. Irwin | last post by:
I'm very new to PHP and am trying to figure out how to parse out a variable "HTTP_REFERER". My reason for this is my site was recently "FEATURED" (sic) on a website called FARK.COM. Because of...
9
by: Jez | last post by:
Any ideas why I'm not able to use $_SERVER on my shared hosting account (PHP 4.1.2), but I can on my local server (PHP 4.3.3)? I imagine it has something to do with the different versions of PHP...
9
by: deko | last post by:
I have a page that I don't want anyone to be able to link directly to. The page should only be accessed from gatepage.php. I tried this code, but keep getting errors - "header info already sent",...
2
by: ssk | last post by:
Hello! I made a web site using PHP Open sources for message board. Everything's fine except one computer can't open a message writing page. The code that gives an error is the following. ...
9
by: Robert Mark Bram | last post by:
Hi All! I have the following in an ASP script: var bounceBackPage = Request.ServerVariables("HTTP_REFERER"); Response.Write("<p>bounceBackPage: " + bounceBackPage + ". Undefined? " +...
2
by: M Smith | last post by:
On our web site we allow our members access to features hosted by another web site. The way the other web site authenticates users is to check the value of the HTTP_REFERER. If it comes from our...
4
by: Ringo Langly | last post by:
Hi everyone, We're using an outside vendor to provide some content for our website, and they use the http_referer variable to verify their content is only viewed from subscribing customers. ...
28
by: Prabhat | last post by:
Hello, I have the below requirement. When ever my website is opened by any link: say clicked from the google search result or a link from other website: Then I should able to know the...
8
by: tshad | last post by:
Why would HTTP_REFERER not be there in the Page_Load event? I am using it to determine whether a page was called from a particular page. I am doing: sTest =...
6
by: Lorna | last post by:
I can't seem to get the ENV variable HTTP_REFERER when posting with CGI from one program to another. In my post program I have put in the <HEAD> HTTP_REFERER =my host - ie www.xyz.com (I have...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.