Forum software's source code PHP file for detecting robots

hey you guys,

I write a lot of traffic report scripts in PHP just simply using the ECHO() and INCLUDE() functions. But the superglobal variables in PHP aren’t good enough, at least what I know about them, to actually print out the names of the types of visitor to any given page. Right now, the identifier I’m using in PHP to show business people the type of visitor is this:

$host = $_SERVER['HTTP_HOST'];

this is perfectly fine, as most of the time the visitor can be looked up by IP address, just like this visitor record from one of my logs:

if a google robot visits though, I see the following return in the first column:

domain.google.usercontent.com

but all of the forums I am a part of are able to return this traffic like the following on their “whos online” page:

Google Spider

do any of you guys know how I an do the same thing? I know for sure that both vBulletin forum software and Xenefro forum software can do this, and the resource must be in the PHP source files somewhere. I have downloaded Xenefro’s software from github here: https://github.com/CMackiee/Xenforo

however, it is quite large and I’m not sure of where to search for the resource I want. there is no file anywhere in this github package that is named in such a way that suggests it has what I want. do you guys know where I can find it? thanks!

They wrote the libraries to look up what they are.

always a pleasure with you, Astone. thanks much. =)

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service