auch keine crawler agents

This commit is contained in:
Sebastian Titz 2022-01-31 11:29:51 +01:00
parent 48bd8e66f2
commit e44c10c5c2

View File

@ -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 ) {