Forum Moderators: coopster
I am trying to build my own web stats program for my site in PHP and so far it is going good. I was curious about a few things though.
Currently, I can record thir REMOTE_ADDR, REQUEST_URI, HTTP_HOST and PHP_SELF (kinda same as REQUEST_URI). I was curious if their was any other information I could grab from the user. I mainly want to see what site they came from and what keywords they used if it was a SE. I doubt I can do that thouh, except for looking at my logs, which are incomplete (Hate my hosting company).
I am also curious about Search Engine Bots. I woudl like it so they don't add to my counter. Is there a way to identify these? I have been looking on the other forums here but really haven't found anything solid on this subject. Are there a list of IP's for Google Bots and I could just restrict those IP's from adding to my counter?
Thanks for your help :)
Wes
Don't forget, as mentioned here, that not all $_SERVER variables are available or trustworthy. There is a link to the PHP manual pages in the script that has much more information.