Skip to content

Commit 464740a

Browse files
committed
Add RateLimit middleware docs.
1 parent e8964e0 commit 464740a

File tree

3 files changed

+389
-0
lines changed

3 files changed

+389
-0
lines changed

en/appendices/5-3-migration-guide.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ Error
137137
``Debugger.editorBasePath`` Configure value if defined. This improves
138138
debugging workflows within containerized environments.
139139

140+
Http
141+
----
142+
143+
- The new ``RateLimitMiddleware`` provides configurable rate limiting for your
144+
application to protect against abuse and ensure fair usage of resources. It
145+
supports multiple identification strategies (IP, user, route, API key),
146+
different rate limiting algorithms (sliding window, fixed window, token bucket),
147+
and advanced features like custom identifiers, request costs, and dynamic limits.
148+
140149
I18n
141150
----
142151

en/controllers/middleware.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ CakePHP provides several middleware to handle common tasks in web applications:
5757
* :doc:`Cake\Http\Middleware\SecurityHeadersMiddleware </security/security-headers>`
5858
makes it possible to add security related headers like ``X-Frame-Options`` to
5959
responses.
60+
* :doc:`Cake\Http\Middleware\RateLimitMiddleware </controllers/middleware/rate-limit>`
61+
provides configurable rate limiting to protect against abuse and ensure fair
62+
usage of resources.
6063

6164
.. _using-middleware:
6265

0 commit comments

Comments
 (0)