More bot detection criteria

This commit is contained in:
Sascha Leib
2025-09-09 09:36:13 +02:00
parent 54c439c9e5
commit 43b05c9311
3 changed files with 49 additions and 32 deletions

View File

@@ -990,6 +990,15 @@ BotMon.live = {
return false;
},
// Is there an accept-language field defined at all?
noAcceptLang: function(visitor) {
if (!visitor.accept || visitor.accept.length <= 0) { // no accept-languages header
return true;
}
// TODO: parametrize this!
return false;
},
// At least x page views were recorded, but they come within less than y seconds
loadSpeed: function(visitor, minItems, maxTime) {