Php referrer vs server log referrer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Klen
    • Aug 2006
    • 32235

    #1

    Php referrer vs server log referrer

    Did anyone noticed how those two does not match 100% ? Perhaps instead using php server referrer variable would be better to read referrer directly from server log ?
  • nm_
    Confirmed User
    • May 2011
    • 328

    #2
    getting referrer from $_SERVER var has always been really inaccurate. I wouldn't trust it for anything serious at all

    parsing server logs are your best bet ;]

    Comment

    • Klen
      • Aug 2006
      • 32235

      #3
      Originally posted by nm_
      getting referrer from $_SERVER var has always been really inaccurate. I wouldn't trust it for anything serious at all

      parsing server logs are your best bet ;]
      Yeah i'l just make a custom log which will write only referrer and then parse it with php.

      Comment

      • k0nr4d
        Confirmed User
        • Aug 2006
        • 9231

        #4
        Since it's the browser sending the referrer to begin with, I would say they will return the same result...
        Mechanical Bunny Media
        Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

        Comment

        • CHMOD
          Confirmed User
          • Jun 2003
          • 1697

          #5
          Originally posted by k0nr4d
          Since it's the browser sending the referrer to begin with, I would say they will return the same result...

          Correct however, stats are always tricky. Put 2 counters on your page and they will not return the exact same stats although they use the same technology...
          Sell our Silicone Dolls and make big money!

          Our website:
          https://www.sexdolls-shop.com/

          Signup:
          http://www.sexdollscash.com/sliiing/registration.php

          Contact:
          [email protected]

          Comment

          • Klen
            • Aug 2006
            • 32235

            #6
            Originally posted by CHMOD
            Correct however, stats are always tricky. Put 2 counters on your page and they will not return the exact same stats although they use the same technology...
            Well most of counters are php based and since they are using this server refferer which is obviously unreliable,better to read server log.Piwik counter does that.

            Comment

            Working...