Limit How Often People Can Try to Log In
Imagine a bot trying thousands of passwords on your login page. If nothing stops it, it may eventually get lucky. Security experts at OWASP call this a brute force attack.
A login form can work fine and still never say "slow down." That's the gap.
The tip: add a limit on how many tries are allowed. This is called rate limiting or login throttling. Your app only allows a few wrong passwords in a short time, for example five in ten minutes. After that, the person has to wait.
Here's how to start:
- Turn on the limits your tools already have. Supabase Auth has built-in rate limits on sign-up and sign-in, and you can change some of them under Authentication, then Rate Limits. Vercel's firewall lets you add a rate limit rule on every plan.
- Count wrong passwords for each account, not just each address. OWASP says the counter should belong to the account, because one attacker can use many IP addresses.
- Make the wait short at first. OWASP warns that a lockout can be misused to lock real people out of their own accounts, so let people reset their password even while login is paused.
- Do the same for password reset forms. OWASP warns that without a limit, an attacker can send thousands of reset emails to one person.
- Ask your AI tool to "add rate limiting to my login, sign-up and password reset forms," then try a few wrong passwords yourself to check it works.
Good to know: the rooGBotVC scan doesn't test your login or try any passwords, so it can't tell you if you have a rate limit. It checks what your app shows the public, like exposed keys and missing security headers.
Not sure what else is missing? Run a free scan of your app at vc.roogbotai.com.
See an example report (for example.org) · a real free scan of a test site, so you can see what you get