From e44c10c5c2055bb6250abcdb07b8eab502d2c536 Mon Sep 17 00:00:00 2001 From: Sebastian Titz Date: Mon, 31 Jan 2022 11:29:51 +0100 Subject: [PATCH] auch keine crawler agents --- ips/crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ips/crawler.php b/ips/crawler.php index 5f5cd13..e1219be 100644 --- a/ips/crawler.php +++ b/ips/crawler.php @@ -26,7 +26,7 @@ $_ips_crawler = array ( ); function checkHuman() { global $_ips_crawler; - if (stripos ( $_SERVER ['HTTP_USER_AGENT'], 'bot' ) !== false) { + if (stripos ( $_SERVER ['HTTP_USER_AGENT'], 'bot' ) !== false && stripos ( $_SERVER ['HTTP_USER_AGENT'], 'crawler' ) !== false) { return false; } foreach ( $_ips_crawler as $np ) {