stats spiders 2
Posted: Tue Apr 11, 2006 7:04 am
Weirdan | Please use
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 have got to this stage now, but am still running into trouble
Weirdan | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I am using 'crawler' in get_browser to check if a visitor is a spider/crawlerCode: Select all
$isspider=0;
$ua = get_browser();
if ($ua['crawler'] == TRUE)
$isspider=1;Any ideas?
Thanks.
P.S.- I also posted a related query last friday viewtopic.php?t=46766, and have got to this stage now, but am still running into trouble
Weirdan | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]