From 19292bddf29be27d422d8570d8be7b1e5750698d Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 5 Jun 2021 17:56:36 +0200 Subject: [PATCH] Added HeadlessChrome as bot criteria detection. --- 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 733bc8b..47e7a73 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", "monitoring", "HeadlessChrome")) + if (StringsUtils.containsAnyIgnoreCase(this.userAgent.toString(), "bot", "crawler", "HeadlessChrome/", "monitoring")) { result = true; }