Added criteria about user agent bot detection.
This commit is contained in:
parent
1d5179a5c3
commit
d7fc746719
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue