Skip to content

Commit

Permalink
[Rate Limiter] Mention the Caddy/FrankenPHP rate limit module
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored Jan 22, 2025
1 parent 52c4215 commit 04254c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rate_limiter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ time, but you can use them for your own features too.
By definition, the Symfony rate limiters require Symfony to be booted
in a PHP process. This makes them not useful to protect against `DoS attacks`_.
Such protections must consume the least resources possible. Consider
using `Apache mod_ratelimit`_, `NGINX rate limiting`_ or proxies (like
AWS or Cloudflare) to prevent your server from being overwhelmed.
using `Apache mod_ratelimit`_, `NGINX rate limiting`_,
`Caddy HTTP rate limit module`_ (also supported by FrankenPHP)
or proxies (like AWS or Cloudflare) to prevent your server from being overwhelmed.

.. _rate-limiter-policies:

Expand Down Expand Up @@ -536,6 +537,7 @@ you can use a specific :ref:`named lock <lock-named-locks>` via the
.. _`DoS attacks`: https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html

Check failure on line 537 in rate_limiter.rst

View workflow job for this annotation

GitHub Actions / Lint (DOCtor-RST)

Please move link definition to the bottom of the page
.. _`Apache mod_ratelimit`: https://httpd.apache.org/docs/current/mod/mod_ratelimit.html

Check failure on line 538 in rate_limiter.rst

View workflow job for this annotation

GitHub Actions / Lint (DOCtor-RST)

Please move link definition to the bottom of the page
.. _`NGINX rate limiting`: https://www.nginx.com/blog/rate-limiting-nginx/

Check failure on line 539 in rate_limiter.rst

View workflow job for this annotation

GitHub Actions / Lint (DOCtor-RST)

Please move link definition to the bottom of the page
.. `Caddy HTTP rate limit module`: https://github.com/mholt/caddy-ratelimit
.. _`token bucket algorithm`: https://en.wikipedia.org/wiki/Token_bucket
.. _`PHP date relative formats`: https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative
.. _`Race conditions`: https://en.wikipedia.org/wiki/Race_condition

0 comments on commit 04254c2

Please sign in to comment.