Web Security 17 🛡️ API Security, Rate Limiting & Bot Defense — Protecting REST/GraphQL endpoints against abuse, scraping, and credential stuffing
An API is a different threat surface from a web page, and the difference is structural rather than a matter of degree. A page is consumed by a browser that enforces the same-origin policy, that hides the response from a cross-origin script, and that renders through an HTML parser which sanitises nothing but executes nothing…