GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Php referrer vs server log referrer (https://gfy.com/showthread.php?t=1149159)

Klen 09-02-2014 02:16 PM

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_ 09-02-2014 02:46 PM

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 ;]

Klen 09-02-2014 02:47 PM

Quote:

Originally Posted by nm_ (Post 20213610)
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.

k0nr4d 09-02-2014 11:39 PM

Since it's the browser sending the referrer to begin with, I would say they will return the same result...

CHMOD 09-03-2014 01:23 AM

Quote:

Originally Posted by k0nr4d (Post 20214018)
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...

Klen 09-03-2014 02:03 AM

Quote:

Originally Posted by CHMOD (Post 20214096)
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.


All times are GMT -7. The time now is 03:23 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123