Problem
A service that filters bots by a single bot score (0–100) must pick one threshold. A lower one catches more bots but shows captchas to more people. A higher one spares people and lets more bots through. Some requests stay in a gray zone where the model cannot tell human from robot, and the only measures are allow, captcha and block (403, 429). During a bot influx or an L7 DDoS attack the choice shrinks to captcha or block, and both hurt real users.
Example from the article: in Yandex Smart Web Security a gray-zone request used to get a captcha at once or pass unchecked, so humans or bots paid for every threshold change.
Solution in brief
Add soft automatic checks between "allow" and "captcha", so gray-zone requests are checked instead of passed or captcha'd, and feed the results back into the bot score. Three protection modes (normal, elevated, under attack), switched by hand or by a request-rate threshold, let the protected service add its own context to the automatic decision.
Questions this case answers
- How to improve recall on automated traffic without raising friction for humans when a single score threshold forces a trade-off and a share of requests cannot be classified confidently
- How to combine automatic anomaly detection with an operator's signal that an attack or a legitimate load spike is under way
- How to stop trading human convenience against bot catch rate when a single bot-score threshold is the only lever?
- How to handle the gray zone of requests that a bot model cannot classify confidently?
Tools and methods
- Cookie Challenge (HTTP 307) — near-free check that works for POST
- JS Challenge (HTTP 302) — page check with ML analysis
- Bot score — 0–100 score that takes check results as input
- Protection modes — rate thresholds with a hold time
- Weak supervision labels — offline labels to compute recall and TNR
Google or a one-time email code. No password.
