provide simple "is a crawler" check

greggles - September 16, 2009 - 23:57
Project:Browscap
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:greggles
Status:closed
Description

We should provide a simple function that does a check for "is this browser a crawler" (i.e. bot).

#1

mikeryan - September 17, 2009 - 00:14

Suggested signature:

function browscap_is_crawler($useragent = NULL)

A browser string can be passed to check, default if NULL is the current session browser.

#2

greggles - September 17, 2009 - 15:42
Status:active» needs review

Could it be this simple? Seems to work...

AttachmentSize
579712_browscap_is_a_crawler_2.patch 852 bytes

#3

greggles - September 17, 2009 - 16:17
Status:needs review» fixed

mikeryan reviewed in irc and agreed with the approach.

So, http://drupal.org/cvs?commit=264120

#4

System Message - October 1, 2009 - 16:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.