Ignore:
Timestamp:
Jul 3, 2014, 3:47:18 PM (10 years ago)
Author:
plg
Message:

new robots VoilaBot and BLEXBot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/no_stats_for_robots/main.inc.php

    r28022 r28935  
    1414}
    1515
     16$bots = array(
     17  'Googlebot',
     18  'bingbot',
     19  'Baiduspider',
     20  'yandex',
     21  'AhrefsBot',
     22  'msnbot',
     23  'Slurp',
     24  'BLEXBot',
     25  'VoilaBot',
     26  );
     27
    1628if (isset($_SERVER["HTTP_USER_AGENT"])
    17     and preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot|Slurp)/', $_SERVER['HTTP_USER_AGENT']))
     29    and preg_match('/('.implode('|', $bots).')/', $_SERVER['HTTP_USER_AGENT']))
    1830{
    1931  add_event_handler('pwg_log_allowed', create_function('', 'return false;'));
Note: See TracChangeset for help on using the changeset viewer.