An application security stack for a SaaS is rarely one tool: a WAF in front of the site, rate limits at the edge or in the API, maybe a CAPTCHA on the sign-up form, and now bot detection. Each answers a different question. Knowing which is which is how you avoid paying twice for the same protection, or leaving a gap between two tools that each thought the other had it.
WAF: attacks on your code
A web application firewall reads each request for the shape of an attack on a vulnerability: SQL injection, cross-site scripting, path traversal, the kinds the OWASP Top 10 lists. It stops requests that try to break your code. A sign-up with a valid email and a valid password uses your form exactly as built and gives it nothing to match, so fake sign-ups, credential stuffing and card testing go through.
Rate limiting: too much from one place
A rate limit caps how many requests one address, key or account sends in a window. It stops a script that hammers you from one place and keeps bursts off your servers. It misses the attack spread thin: a credential stuffing run from thousands of residential addresses, each trying a few passwords, stays under any limit a real customer could live with.
CAPTCHA: a test for everyone
A CAPTCHA asks every visitor to prove they are a person. It stops the simplest scripts and costs every real customer a puzzle at the moment you most want them to finish. Solving services sell the answers in bulk, a threat OWASP numbers OAT-009 CAPTCHA Defeat, so the scripts that matter get through while some people give up.
Bot detection: who is acting
Bot detection answers the question the other three do not ask: is a person or a program behind this sign-up, login or payment? Bot Protection answers it in one call from your server, before the action, with a class, a score and an action, and asks the visitor nothing. It is not in front of your site: if it does not answer in time, your server lets the visitor through. It does not replace the WAF or the rate limits; it covers the attacks that look like normal use (the OWASP automated threats).
What each one stops
| Attack | WAF | Rate limiting | CAPTCHA | Bot detection |
|---|---|---|---|---|
| SQL injection, cross-site scripting | Yes | No | No | No |
| A flood from one address | Partly | Yes | No | No |
| Fake sign-ups | No | Partly | Partly | Yes |
| Credential stuffing from many addresses | No | No | Partly | Yes |
| Card testing | No | Partly | Partly | Yes |
A volumetric DDoS is none of these: it is your CDN's job, before any request reaches your application.
Questions
Do I still need a WAF with bot protection?
Yes, if you have one for its own job: a WAF stops attacks on vulnerabilities, bot protection stops automation that uses your features as built. Neither does the other's work.
Is bot detection the same as rate limiting?
No. A rate limit counts requests from one source; bot detection asks whether a person is behind each action, so it catches the attack spread across many addresses that a limit lets through.