From 45347279ce349d9d1d2be69527f6217437b68ffc Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 6 Feb 2020 12:49:11 +0000 Subject: [PATCH] also bingbot and yandex don't need to see deep archives of weird searches --- ext/index/main.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ext/index/main.php b/ext/index/main.php index 8dae2acc..66f42ef6 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -46,13 +46,18 @@ class Index extends Extension $fast_page_limit = 500; if ( - SPEED_HAX && strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false + SPEED_HAX + && ( + strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false + || strstr($_SERVER["HTTP_USER_AGENT"], "YandexBot") !== false + || strstr($_SERVER["HTTP_USER_AGENT"], "bingbot") !== false + ) && ( $count_search_terms > 1 || ($count_search_terms == 1 && $search_terms[0][0] == "-") ) ) { - // googlebot loves searching for weird combinations of tags... + // bots love searching for weird combinations of tags... $fast_page_limit = 10; }