Пример #1
0
 protected function compute()
 {
     $ua = $this->request->userAgent;
     // Control cap, "controlcap_is_robot" is checked before this function is called
     if ($this->request->originalHeaderExists("HTTP_ACCEPT_ENCODING") && WURFL_Handlers_Utils::checkIfContains($ua, "Trident/") && !WURFL_Handlers_Utils::checkIfContains($this->request->getOriginalHeader("HTTP_ACCEPT_ENCODING"), "deflate")) {
         return true;
     }
     // Check against standard bot list
     return WURFL_Handlers_Utils::isRobot($this->request->getOriginalHeader('HTTP_USER_AGENT'));
 }
 public function canHandle($userAgent)
 {
     return WURFL_Handlers_Utils::isRobot($userAgent);
 }
Пример #3
0
 protected function compute()
 {
     // Control cap, "controlcap_is_robot" is checked before this function is called
     // Check against standard bot list
     return WURFL_Handlers_Utils::isRobot($this->request->userAgent);
 }