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

#2 579712_browscap_is_a_crawler_2.patch852 bytesgreggles
Members fund testing for the Drupal project. Drupal Association Learn more


mikeryan’s picture

Suggested signature:

function browscap_is_crawler($useragent = NULL)

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

greggles’s picture

Status: Active » Needs review
852 bytes

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

greggles’s picture

Status: Needs review » Fixed

mikeryan reviewed in irc and agreed with the approach.

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

Status: Fixed » Closed (fixed)

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