# Rate limiting

> Rate limiting restricts how often a user or a program may send requests to an application or an interface within a given period.

Original page: https://t10.de/en/glossary/rate-limiting
Publisher: total10 GmbH, https://t10.de/en/glossary

The [OWASP API Security Top 10](https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/) recommends such a limit for APIs, capping how often each client may call an API in a set period. How a server signals that the limit has been reached is set out in the Internet Engineering Task Force's [RFC 6585](https://www.rfc-editor.org/rfc/rfc6585.txt). Status code 429 says that the user has sent too many requests within a certain time. The standard leaves open how the server identifies the user and how it counts requests, so both are the operator's decision.

OWASP also recommends throttling individual operations, for example validating a one-time password or requesting a password reset. For organisations that follow IT-Grundschutz, the web application module of the [Compendium, Edition 2023](https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Grundschutz/IT-GS-Kompendium_Einzel_PDFs_2023/06_APP_Anwendungen/APP_3_1_Webanwendungen_und_Webservices_Edition_2023.pdf?__blob=publicationFile&v=3) (in German), has two relevant Basic Requirements, though neither uses the term. Under APP.3.1.A1, appropriate thresholds for failed login attempts must be defined. APP.3.1.A7 requires protection against unauthorised automated use; that protection must take account of its effect on authorised users.

OWASP's [cheat sheet on credential stuffing](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html) describes where rate limiting may fall short. Many toolkits spread their requests over a great many IP addresses, so each address may send too few requests for the limit to take effect.

In two projects we built for pharma logistics, a knowledge platform and a stock alert application, login attempts are throttled to counter password guessing.

## See also

- [Credential stuffing](https://t10.de/en/glossary/credential-stuffing): Credential stuffing is an automated attack in which username and password pairs stolen elsewhere are tried in bulk against the login of another service.
- [Denial of service](https://t10.de/en/glossary/denial-of-service): Denial of service (DoS) is an attack that overloads or disrupts a service such as an online shop so that it is no longer available to its users.
- [Web application firewall](https://t10.de/en/glossary/web-application-firewall): A web application firewall (WAF) is an application-level filter that checks the requests to a web application and the responses it sends, in order to fend off attacks carried in web traffic.
- [API](https://t10.de/en/glossary/api): An API (application programming interface) is a defined set of functions and rules that lets one piece of software use the features or data of another system or service.

## Where the term appears

- [Non-GxP in pharma: what we build, what we leave out and where our systems stop](https://t10.de/en/blog/non-gxp-pharma-logistics)
- [Stock alerts in pharma logistics](https://t10.de/en/blog/stock-alerts-pharma)

## Sources

1. [API4:2023 Unrestricted Resource Consumption (OWASP API Security Top 10 2023)](https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/), OWASP Foundation (OWASP API Security Project), accessed 2026-11-18
2. [RFC 6585: Additional HTTP Status Codes (April 2012, Standards Track)](https://www.rfc-editor.org/rfc/rfc6585.txt), IETF (RFC Editor), accessed 2026-11-18
3. [IT-Grundschutz-Kompendium Edition 2023, Baustein APP.3.1 Webanwendungen und Webservices](https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Grundschutz/IT-GS-Kompendium_Einzel_PDFs_2023/06_APP_Anwendungen/APP_3_1_Webanwendungen_und_Webservices_Edition_2023.pdf?__blob=publicationFile&v=3), Bundesamt für Sicherheit in der Informationstechnik (BSI), accessed 2026-11-18
4. [Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html), OWASP Foundation (OWASP Cheat Sheet Series), accessed 2026-11-18
