From 6eaff00f8100adeb8eaf01dc7e2ca1d2bb5f161e Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 6 Jun 2021 00:12:40 +0200 Subject: [PATCH] Added Curl, Mattermost, PHP, okhttp, Synapse and newspaper as bot criteria detection in user agent. --- src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java index 47e7a73..afcc493 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java @@ -189,7 +189,8 @@ public class HttpAccessLog { result = true; } - else if (StringUtils.startsWithAny(this.userAgent.toString(), "Apache-HttpClient/", "git/", "github-camo", "http.rb/", "Go-http-client", "GoModuleMirror/", "HotJava/", "Java/", "JGit/")) + else if (StringUtils.startsWithAny(this.userAgent.toString(), "Apache-HttpClient/", "curl/", "git/", "github-camo", "http.rb/", "Go-http-client", "GoModuleMirror/", "HotJava/", "Java/", + "JGit/", "mattermost-", "newspaper/", "okhttp/", "PHP/", "Synapse/")) { result = true; }