protected function isNonHumanBot() { $allowBots = $this->request->getParam('bots'); $deviceDetector = DeviceDetectorFactory::getInstance($this->userAgent); return !$allowBots && ($deviceDetector->isBot() || $this->isIpInRange()); }