From d901bfe1010f0eefb550e4b1844f98a3c04b1a92 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 4 Jun 2021 17:38:59 +0200 Subject: [PATCH] Extended bot 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 684eb33..91f20e4 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java @@ -189,7 +189,7 @@ public class HttpAccessLog { result = true; } - else if (StringUtils.startsWithAny(this.userAgent.toString(), "Java/", "HotJava/")) + else if (StringUtils.startsWithAny(this.userAgent.toString(), "git/", "github-camo", "http.rb/", "Go-http-client", "GoModuleMirror/", "HotJava/", "Java/", "JGit/")) { result = true; }