Added criteria about user agent bot detection.

This commit is contained in:
Christian P. MOMON 2021-06-06 03:35:19 +02:00
parent 1d5179a5c3
commit d7fc746719

View file

@ -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;
}