Protect a Sign-In Route Without Locking Out Customers

Protect one sign-in route by counting confirmed failures and logging which later requests would hit your limit. A customer who mistypes a password and then signs in is a useful test case. If that ordinary retry would be blocked, adjust the rule before enforcing it.

1. Confirm what a failed sign-in looks like

Use a test account you control. Try a successful sign-in, then enter an incorrect password and retry with the correct one. In Log Explorer, narrow the time range and filter by host, request method and the exact sign-in route. Compare the response for each attempt with your application’s authentication records. Record which failure signal you can use and which outcomes you want to leave out, such as a separate multi-factor prompt or an application error.

If your application reliably returns HTTP 401 for the failed sign-ins you want to count, match that response on the sign-in route. A 401 on an unrelated endpoint doesn’t belong in the count. Some applications return HTTP 200 even for a failed sign-in. If you can’t distinguish success from failure in the evidence available to the rule, measure failures in your application’s authentication logs before you try to enforce a response-based limit.

2. Count failures and log what would hit the limit

Create a dedicated rate limit zone. In the Rate Limit Response phase, add confirmed failures to that zone. Then use the Rate Limit Request phase to check the same zone and key on later requests to that sign-in route. Counting happens after the application responds, so it can affect the next request. Start with the Log action when the request check exceeds the threshold.

Choose the key, limit and time window using the traffic you actually see. If you count per IP address, people in an office or on a mobile network can share one count. Check groups like these before enforcing. The advanced rate limiting tutorial shows how the request and response rules fit together.

3. Check customer sign-ins before enforcing

Review the logged matches alongside authentication outcomes and support reports. Look for real customers who mistyped a password and then successfully signed in, customers on shared networks, and mobile or accessibility flows your team supports. Test those paths with accounts you control. If ordinary retries would hit the limit, narrow the scope or change the threshold and test again.

Once the matches fit the problem you want to stop, enforce the rule on the same narrow route. Check that a controlled repeat failure hits the expected action and that normal sign-in, ordinary retries, and account recovery still work. Compare completed sign-ins and support reports with the period before the change. A rise in blocked requests tells you the rule is firing. Sign-in outcomes tell you whether customers are still getting through.

4. Roll back if the rule gets in the way

Record the rule name and previous action before enabling enforcement. If legitimate sign-ins are affected, change the request check back to Log or disable the new check, then commit the change. Repeat the affected sign-in with a test account and verify in Log Explorer that the enforcement action no longer fires. Keep the failure-counting rule if you still need evidence and can do so without affecting customer access.

If a customer reports unusual activity later in the visit, the Peakhour Journey staging preview can open a matching visit from Log Explorer when Peakhour can associate the request with one. Use that timeline with your application’s audit records to investigate what happened before an account change. The application and configured rules handle verification and enforcement.

For controls on sensitive actions after sign-in, see account takeover prevention.

© PEAKHOUR.IO PTY LTD 2026   ABN 76 619 930 826    All rights reserved.