Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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