Skip to content

Instantly share code, notes, and snippets.

@breck7
Created November 13, 2009 15:58
Show Gist options
  • Save breck7/233921 to your computer and use it in GitHub Desktop.
Save breck7/233921 to your computer and use it in GitHub Desktop.
$isBot = preg_match('/(spider|crawl|curl|python|twitt|bot|google|perl|archiver|monitor|mechanize)/i',$_SERVER['HTTP_USER_AGENT']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment