Added Curl, Mattermost, PHP, okhttp, Synapse and newspaper as bot

criteria detection in user agent.
This commit is contained in:
Christian P. MOMON 2021-06-06 00:12:40 +02:00
parent 19292bddf2
commit 6eaff00f81

View file

@ -189,7 +189,8 @@ public class HttpAccessLog
{ {
result = true; 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; result = true;
} }