A busy sign-in page may be doing just what a shop wants. A run of failures calls for a closer look. A Peakhour rate-limit zone is a named counter that can track just those failed attempts. A later request can be checked against the counter before asking the application to handle another sign-in.
In 2023 we added more ways to group traffic, including keys based on request headers, cookies and network fingerprints. The January 2024 Advanced Rate Limiting article described how to set the filter, grouping and mitigation separately. Later in 2024, the dashboard gained a dedicated Check zone action and the proxy added support for checking limits after the WAF has evaluated a request.
Count failures after the application replies
Set a response rule to add a failed sign-in to the zone. A request rule can then check the zone using the same grouping and apply the configured action when the threshold is reached. Choose the grouping to match who should share a limit. For an API, that could be an authenticated client. Two clients in one office can then have separate limits even when they share a public IP address.
Rules run at different points as Peakhour handles a request. A response rule can see the outcome from the application. A late request rule can use the result from the web application firewall (WAF).
Advanced Rate Limiting with Zones · Original Advanced Rate Limiting article · Release history