Example #1
0
 public function isBotRequest()
 {
     $httpUserAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null;
     $botList = $this->configuration->getBotList();
     foreach ($botList as $bot) {
         if (stripos($httpUserAgent, $bot) !== false) {
             return true;
         }
     }
     return false;
 }