Back to problems

Realtime Bot IP Detection

Algorithm · Roblox · Easy

Design a real‑time request‑rate monitor for a web service. The monitor receives requests tagged with an IP address and a time stamp, and it must decide, for every single request, whether the origin IP should be classified as a bot. An IP is considered a bot at a given request if, counting this request, the IP has made strictly more than a configured maximum number of requests inside a sliding time window that ends at the current request's time. Implement the DetectionSystem…

Checking your access…