From c8e4dcad0cf86847be9aca876466ac02926b3cb0 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 6 Jun 2021 01:00:30 +0200 Subject: [PATCH] Added BingPreview and YisouSpider as bot criteria detection in user agent. --- src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java index afcc493..fc5be58 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java @@ -185,7 +185,7 @@ public class HttpAccessLog { boolean result; - if (StringsUtils.containsAnyIgnoreCase(this.userAgent.toString(), "bot", "crawler", "HeadlessChrome/", "monitoring")) + if (StringsUtils.containsAnyIgnoreCase(this.userAgent.toString(), "BingPreview", "bot", "crawler", "HeadlessChrome/", "monitoring", "YisouSpider")) { result = true; }