Extended user agent bot criteria detection.
This commit is contained in:
parent
3646bb4d74
commit
f209406b3a
1 changed files with 4 additions and 3 deletions
|
@ -185,12 +185,13 @@ public class HttpAccessLog
|
||||||
{
|
{
|
||||||
boolean result;
|
boolean result;
|
||||||
|
|
||||||
if (StringsUtils.containsAnyIgnoreCase(this.userAgent.toString(), "BingPreview", "bot", "crawler", "HeadlessChrome/", "monitoring", "YisouSpider"))
|
if (StringsUtils.containsAnyIgnoreCase(this.userAgent.toString(), "BingPreview", "bot", "crawler", "HeadlessChrome/", " - Mobilizon ", "monitoring", "YisouSpider"))
|
||||||
{
|
{
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
else if (StringUtils.startsWithAny(this.userAgent.toString(), "Apache-HttpClient/", "Friendica ", "curl/", "git/", "github-camo", "http.rb/", "FediList ", "Go-http-client", "GoModuleMirror/",
|
else if (StringUtils.startsWithAny(this.userAgent.toString(), "Apache-HttpClient/", "curl/", "Friendica ", "git/", "github-camo", "hackney/", "http.rb/", "FediList ", "Go-http-client",
|
||||||
"HotJava/", "Java/", "JGit/", "mattermost-", "Misskey/", "newspaper/", "okhttp/", "PeerTube/", "PHP/", "Pleroma ", "python-requests/", "Synapse/", "Tusky/"))
|
"GoModuleMirror/", "HotJava/", "Java/", "JGit/", "MastoPeek ", "mattermost-", "Misskey/", "newspaper/", "node-fetch/", "okhttp/", "PeerTube/", "PHP/", "Pleroma ", "python-requests/",
|
||||||
|
"python/", "Python/", "Synapse/", "Tusky/"))
|
||||||
{
|
{
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue