- and preg_match(
- // mots generiques
- ',bot|slurp|crawler|spider|webvac|yandex|'
- // MSIE 6.0 est un botnet 99,9% du temps, on traite donc ce USER_AGENT comme un bot
- . 'MSIE 6\.0|'
- // UA plus cibles
- . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|facebookexternalhit|flipboard|hootsuite|FunWebProducts|Google|Genieo|INA dlweb|InfegyAtlas|Java VM|LiteFinder|Lycos|MegaIndex|MetaURI|Moreover|Rambler|Scrapy|Scooter|ScrubbyBloglines|Yahoo|Yeti'
- . ',i', (string)$_SERVER['HTTP_USER_AGENT'])
+ and preg_match(','
+ . implode ('|', array(
+ // mots generiques
+ 'bot',
+ 'slurp',
+ 'crawler',
+ 'crwlr',
+ 'java',
+ 'monitoring',
+ 'spider',
+ 'webvac',
+ 'yandex',
+ 'MSIE 6\.0', // botnet 99,9% du temps
+ // UA plus cibles
+ '200please',
+ '80legs',
+ 'a6-indexer',
+ 'aboundex',
+ 'accoona',
+ 'acrylicapps',
+ 'addthis',
+ 'adressendeutschland',
+ 'alexa',
+ 'altavista',
+ 'analyticsseo',
+ 'antennapod',
+ 'arachnys',
+ 'archive',
+ 'argclrint',
+ 'aspseek',
+ 'baidu',
+ 'begunadvertising',
+ 'bing',
+ 'bloglines',
+ 'buck',
+ 'browsershots',
+ 'bubing',
+ 'butterfly',
+ 'changedetection',
+ 'charlotte',
+ 'chilkat',
+ 'china',
+ 'coccoc',
+ 'crowsnest',
+ 'dataminr',
+ 'daumoa',
+ 'dlvr\.it',
+ 'dlweb',
+ 'drupal',
+ 'ec2linkfinder',
+ 'eset\.com',
+ 'estyle',
+ 'exalead',
+ 'ezooms',
+ 'facebookexternalhit',
+ 'facebookplatform',
+ 'fairshare',
+ 'feedfetcher',
+ 'feedfetcher-google',
+ 'feedly',
+ 'fetch',
+ 'flipboardproxy',
+ 'genieo',
+ 'google',
+ 'go-http-client',
+ 'grapeshot',
+ 'hatena-useragent',
+ 'head',
+ 'hosttracker',
+ 'hubspot',
+ 'ia_archiver',
+ 'ichiro',
+ 'iltrovatore-setaccio',
+ 'immediatenet',
+ 'ina',
+ 'inoreader',
+ 'infegyatlas',
+ 'infohelfer',
+ 'instapaper',
+ 'jabse',
+ 'james',
+ 'jersey',
+ 'kumkie',
+ 'linkdex',
+ 'linkfluence',
+ 'linkwalker',
+ 'litefinder',
+ 'loadimpactpageanalyzer',
+ 'ltx71',
+ 'luminate',
+ 'lycos',
+ 'lycosa',
+ 'mediapartners-google',
+ 'msai',
+ 'myapp',
+ 'nativehost',
+ 'najdi',
+ 'netcraftsurveyagent',
+ 'netestate',
+ 'netseer',
+ 'netnewswire',
+ 'newspaper',
+ 'newsblur',
+ 'nuhk',
+ 'nuzzel',
+ 'okhttp',
+ 'otmedia',
+ 'owlin',
+ 'owncloud',
+ 'panscient',
+ 'paper\.li',
+ 'parsijoo',
+ 'protopage',
+ 'plukkie',
+ 'proximic',
+ 'pubsub',
+ 'python',
+ 'qirina',
+ 'qoshe',
+ 'qualidator',
+ 'qwantify',
+ 'rambler',
+ 'readability',
+ 'ruby',
+ 'sbsearch',
+ 'scoop\.it',
+ 'scooter',
+ 'scoutjet',
+ 'scrapy',
+ 'scrubby',
+ 'scrubbybloglines',
+ 'shareaholic',
+ 'shopwiki',
+ 'simplepie',
+ 'sistrix',
+ 'sitechecker',
+ 'siteexplorer',
+ 'snapshot',
+ 'sogou',
+ 'special_archiver',
+ 'speedy',
+ 'spinn3r',
+ 'spreadtrum',
+ 'steeler',
+ 'subscriber',
+ 'suma',
+ 'superdownloads',
+ 'svenska-webbsido',
+ 'teoma',
+ 'the knowledge AI',
+ 'thumbshots',
+ 'tineye',
+ 'traackr',
+ 'trendiction',
+ 'trendsmap',
+ 'tweetedtimes',
+ 'tweetmeme',
+ 'universalfeedparser',
+ 'uaslinkchecker',
+ 'undrip',
+ 'unwindfetchor',
+ 'upday',
+ 'vedma',
+ 'vkshare',
+ 'vm',
+ 'wch',
+ 'webalta',
+ 'webcookies',
+ 'webparser',
+ 'webthumbnail',
+ 'wesee',
+ 'wise-guys',
+ 'woko',
+ 'wordpress',
+ 'wotbox',
+ 'y!j-bri',
+ 'y!j-bro',
+ 'y!j-brw',
+ 'y!j-bsc',
+ 'yahoo',
+ 'yahoo!',
+ 'yahooysmcm',
+ 'ymobactus',
+ 'yats',
+ 'yeti',
+ 'zeerch'
+ )) . ',i',
+ (string)$_SERVER['HTTP_USER_AGENT'])