From d7fc7467194380e650ff13e95ddaeaa5c0eb8c81 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 6 Jun 2021 03:35:19 +0200 Subject: [PATCH] Added criteria about user agent bot detection. --- src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java index fc5be58..487349c 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java @@ -189,8 +189,8 @@ public class HttpAccessLog { result = true; } - 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/")) + else if (StringUtils.startsWithAny(this.userAgent.toString(), "Apache-HttpClient/", "Friendica ", "curl/", "git/", "github-camo", "http.rb/", "FediList ", "Go-http-client", "GoModuleMirror/", + "HotJava/", "Java/", "JGit/", "mattermost-", "Misskey/", "newspaper/", "okhttp/", "PeerTube/", "PHP/", "Pleroma ", "python-requests/", "Synapse/", "Tusky/")) { result = true; }