Captcha-based bot rules

This commit is contained in:
Sascha Leib
2025-10-26 20:09:54 +01:00
parent bc52cf5354
commit 2c8aaf6cac
2 changed files with 18 additions and 4 deletions

View File

@@ -1680,6 +1680,16 @@ BotMon.live = {
return (countries.indexOf(visitor.geo) < 0);
}
return false;
},
// Check if visitor never went beyond a captcha
blockedByCaptcha: function(visitor) {
return (visitor._captcha.Y > 0 && visitor._captcha.N === 0);
},
// Check if visitor came from a whitelisted IP-address
whitelistedByCaptcha: function(visitor) {
return (visitor._captcha.W > 0);
}
}
},