473,785 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are They Lying: $_SERVER["HTTP_REFER ER"] Question

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?
Jul 17 '05 #1
14 2680
Good Man <he***@letsgo.c om> wrote:
My question is: is $_SERVER['HTTP_REFERRER'] reliable?


Short: No

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

Jul 17 '05 #2

"Good Man" <he***@letsgo.c om> a écrit dans le message de news:
Xn************* **********@216. 196.97.131...
My question is: is $_SERVER['HTTP_REFERRER'] reliable?


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

Jul 17 '05 #3
Good Man (he***@letsgo.c om) decided we needed to hear...
<snip>
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?


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 <da**@REMOVEbun dook.com>
(Remove REMOVE for email address)
Jul 17 '05 #4
Let me clarify -

Sure, the $_SERVER["HTTP_REFER RER"] 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

Jul 17 '05 #5
They lie.

ECRIA
http://www.ecria.com
Jul 17 '05 #6
ECRIA Public Mail Buffer ÐÉÛÅÔ:
Let me clarify -

Sure, the $_SERVER["HTTP_REFER RER"] 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!

Hi, Mickey! :)
that for sure - in my country at least 80% using a proxy server

Living in Ukraine.
Jul 17 '05 #7
Of course, the acid test is to take the $_SERVER["HTTP_REFER RER"] 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
Jul 17 '05 #8
BTW it's HTTP_REFERER not HTTP_REFERRER :-)

Jul 17 '05 #9
"ECRIA Public Mail Buffer" <ng***********@ ecria.com> wrote in
news:d8******** **@murdoch.acc. Virginia.EDU:
Of course, the acid test is to take the $_SERVER["HTTP_REFER RER"] 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


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...
Jul 17 '05 #10

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

Similar topics

9
28688
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", or something like that... Am I missing something, or is there a better way to do this? <?php $ref = $_SERVER; //echo $ref; if ( $ref == 'http://www.mydomain.com/gatepage.php' ) {
2
1757
by: Word Painter | last post by:
this may be more of an "html" issue, but I'll wing it. i've got a multi-language site, where the home-page of each language group features a link to a popup window that offers background info on site management. the popup is fired by a javascript function, when they click the site management link. there's also a "window close" function button so they can nuke it as they please. now, oddly, people who search for my site in the chinese...
10
2307
by: Breana | last post by:
Ok i found this a while back and i am trying to mod it so it works but it keeps not updating the users online and kills my other code? Well i got it working but it dont update when i login? It says 14 guest now, and i am logged in so it sould ream me as member..... And how do i make a cron job, the tutorial says it lowrs site badwith and it runs better updating records?
5
7366
by: Pseudonyme | last post by:
Dear All : Ever had an httpd error_log bigger than the httpd access log ? We are using Linux-Apache-Fedora-Httpd 2006 configuration. The PHP lines code that lead too tons of errors are : $http_ref= $HTTP_REFERER; $prog = $_COOKIE;
2
4309
by: bips2008 | last post by:
The code seems to work fine in other browser but in IE it throws this error. This is very urgent for me and any help would be greatly appreciated For your convienence i have posted the code for the file. The portion that is not working is the star rating part <?php session_start(); include_once('includes/host_conf.php'); include_once('includes/db_connect.php'); include_once('includes/mysql.lib.php');...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9952
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.