473,796 Members | 2,524 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 2682
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
1760
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
2308
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
7369
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
4312
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
9679
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
9527
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
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10223
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10172
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2924
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.