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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Good Man

    Are They Lying: $_SERVER["HTTP_REFERER"] 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?
  • Daniel Tryba

    #2
    Re: Are They Lying: $_SERVER["HTTP_REFE RER"] Question

    Good Man <heyho@letsgo.c om> 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.

    Comment

    • Yttrium

      #3
      Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question


      "Good Man" <heyho@letsgo.c om> a écrit dans le message de news:
      Xns967464D9B8FB sonicyouth@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 :-( )
      --




      Comment

      • Dave

        #4
        Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

        Good Man (heyho@letsgo.c om) 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@REMOVEbun dook.com>
        (Remove REMOVE for email address)

        Comment

        • ECRIA Public Mail Buffer

          #5
          Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

          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




          Comment

          • ECRIA Public Mail Buffer

            #6
            Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

            They lie.

            ECRIA



            Comment

            • Ivan Omelchenko 608308824

              #7
              Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

              ECRIA Public Mail Buffer ÐÉÛÅÔ:[color=blue]
              > 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!
              >[/color]
              Hi, Mickey! :)
              that for sure - in my country at least 80% using a proxy server

              Living in Ukraine.

              Comment

              • ECRIA Public Mail Buffer

                #8
                Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

                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



                Comment

                • Philip  Olson

                  #9
                  Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

                  BTW it's HTTP_REFERER not HTTP_REFERRER :-)

                  Comment

                  • Good Man

                    #10
                    Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] 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_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[/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...

                    Comment

                    • ECRIA Public Mail Buffer

                      #11
                      Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] 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
                      Providing a surprisingly human shopping experience. Trusted and secure. Millions of domains to choose from.


                      "Philip Olson" <philipolson@gm ail.com> wrote in message
                      news:1118679099 .596335.33860@g 49g2000cwa.goog legroups.com...[color=blue]
                      > BTW it's HTTP_REFERER not HTTP_REFERRER :-)
                      >[/color]


                      Comment

                      • Malcolm Dew-Jones

                        #12
                        Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

                        Good Man (heyho@letsgo.c om) 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.

                        Comment

                        • Bernie Cosell

                          #13
                          Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

                          Good Man <heyho@letsgo.c om> 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@fantasyf arm.com Pearisburg, VA
                          --> Too many people, too few sheep <--

                          Comment

                          • Samuel (lets dot monroe at gmail dot com)

                            #14
                            Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] Question

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

                            It's a long story.

                            Comment

                            • John Dunlop

                              #15
                              Re: Are They Lying: $_SERVER[&quot;HTTP_REFE RER&quot;] 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

                              Comment

                              Working...