Closed (fixed)
Project:
Browscap
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Sep 2009 at 23:57 UTC
Updated:
1 Oct 2009 at 16:20 UTC
Jump to comment: Most recent file
We should provide a simple function that does a check for "is this browser a crawler" (i.e. bot).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 579712_browscap_is_a_crawler_2.patch | 852 bytes | greggles |
Comments
Comment #1
mikeryanSuggested signature:
function browscap_is_crawler($useragent = NULL)
A browser string can be passed to check, default if NULL is the current session browser.
Comment #2
gregglesCould it be this simple? Seems to work...
Comment #3
gregglesmikeryan reviewed in irc and agreed with the approach.
So, http://drupal.org/cvs?commit=264120