Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-06 11:24:34 +0200
committerErich Eckner <git@eckner.net>2019-08-06 11:24:34 +0200
commit87dadcf429a8d2367608f422de8accdd4103ba48 (patch)
treee362c46a2dd508d59cbdcc08cc5c07b9031a3b80
parente1456c546398883655ed1ca8c161c942a3954d62 (diff)
lib/mysql.php: add more bot user agents
-rw-r--r--lib/mysql.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index d3b210f..66fe82f 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -103,12 +103,19 @@ function abort_iff_webspider() {
$is_a_bot = in_array(
$_SERVER['HTTP_USER_AGENT'],
array(
+ '',
+ 'Googlebot-Image/1.0',
+ 'Linguee Bot (http://www.linguee.com/bot; bot@linguee.com)',
'Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)',
+ 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)',
'Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',
"'Mozilla/5.0 (compatible; DuckDuckBot-Https/1.1; https://duckduckgo.com/duckduckbot)'",
+ 'Mozilla/5.0 (compatible; FemtosearchBot/1.0; http://femtosearch.com)',
+ 'Mozilla/5.0 (compatible; Qwantify/2.4w; +https://www.qwant.com/)/2.4w',
'Mozilla/5.0 (compatible; SeznamBot/3.2; +http://napoveda.seznam.cz/en/seznambot-intro/)',
'Mozilla/5.0 (Compatible; Supybot 2019.02.23)',
'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)',
+ 'Mozilla/5.0 (compatible; Yeti/1.1; +http://naver.me/spd)',
'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
'ZoominfoBot (zoominfobot at zoominfo dot com)'
)