newbie stats-spider
Posted: Wed Apr 12, 2006 6:55 am
Hi,
I am using 'crawler' in get_browser to check if a visitor is a spider/crawler
$isspider=0;
$ua = get_browser(null,TRUE);
if ($ua->crawler == TRUE)
$isspider=1;
And then in my code, I check the value of $isspider to dump the data accordingly. The problem is, that $ua[crawler] always seems to be null. I am also storing the HTTP_USER_AGENT values, and saw using those that an MSNbot just visited my website. But $ua['crawler'] fails to register this (it is always null).
Any ideas?
Thanks.
P.S.- I also posted a related query last friday viewtopic.php?t=46766 and viewtopic.php?t=46937, and have got to this stage now, but am still running into trouble
I am using 'crawler' in get_browser to check if a visitor is a spider/crawler
$isspider=0;
$ua = get_browser(null,TRUE);
if ($ua->crawler == TRUE)
$isspider=1;
And then in my code, I check the value of $isspider to dump the data accordingly. The problem is, that $ua[crawler] always seems to be null. I am also storing the HTTP_USER_AGENT values, and saw using those that an MSNbot just visited my website. But $ua['crawler'] fails to register this (it is always null).
Any ideas?
Thanks.
P.S.- I also posted a related query last friday viewtopic.php?t=46766 and viewtopic.php?t=46937, and have got to this stage now, but am still running into trouble