Skip to content

[RateLimiter] [Rate Limiter] Mention the Caddy/FrankenPHP rate limit module #20592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -543,6 +544,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
.. _`Apache mod_ratelimit`: https://httpd.apache.org/docs/current/mod/mod_ratelimit.html
.. _`NGINX rate limiting`: https://www.nginx.com/blog/rate-limiting-nginx/
.. _`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
Loading