From b9f3d6b6007e19ebb2524c1a0d0fd2f53713da85 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 26 May 2021 00:22:06 +0200 Subject: [PATCH] Added crawler as user agent token identifier for bot. --- 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 571a096..684eb33 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", "monitoring", "Apache-HttpClient")) + if (StringsUtils.containsAnyIgnoreCase(this.userAgent.toString(), "bot", "monitoring", "Apache-HttpClient", "crawler")) { result = true; }