Skip to content
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

Does play-guard support rate-limit control based on request body/url #15

Closed
baiyan-rft opened this issue May 7, 2021 · 1 comment
Closed

Comments

@baiyan-rft
Copy link

Does play-guard support rate-limit control based on request body/url? We need to limit some type queries at sec level. for example 4r/sec.

@sief
Copy link
Owner

sief commented May 7, 2021

yes, the RateLimitActionFilter is the general filter that allows access to any request attribute. Just pass in the function that gets the key from the request as the keyFromRequest: R[_] => Any parameter

@sief sief closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants