Skip to content

Commit eaa88f0

Browse files
authored
Merge pull request #8063 from cakephp/5.next-rate-limit
Add RateLimit middleware docs.
2 parents 4ef26a3 + 464740a commit eaa88f0

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
@@ -151,6 +151,15 @@ Error
151151
``Debugger.editorBasePath`` Configure value if defined. This improves
152152
debugging workflows within containerized environments.
153153

154+
Http
155+
----
156+
157+
- The new ``RateLimitMiddleware`` provides configurable rate limiting for your
158+
application to protect against abuse and ensure fair usage of resources. It
159+
supports multiple identification strategies (IP, user, route, API key),
160+
different rate limiting algorithms (sliding window, fixed window, token bucket),
161+
and advanced features like custom identifiers, request costs, and dynamic limits.
162+
154163
I18n
155164
----
156165

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)