Jump to content

stats-spider


dal_oscar

Recommended Posts

whoops.......looks like i pressed submit 2wice or soemthing - to get email notifications of replies. can the admin please delete one of these....apologies!!!
Hi,
I am not sure if I posted this here before. If I did, please accept my apologies. I tried looking for my post (if any)but couldnt find it, so here it is...


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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.