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

limiter: generate smaller key #53

Open
slint opened this issue Sep 13, 2019 · 0 comments
Open

limiter: generate smaller key #53

slint opened this issue Sep 13, 2019 · 0 comments

Comments

@slint
Copy link
Member

slint commented Sep 13, 2019

Currently the User Agent + IP address of the request is used to generate the rate-limiting key. This can end up being very long because of the User Agent string, thus taking up more space in Redis.

Hashing and base64-encoding the User Agent part of the key would solve this

@slint slint self-assigned this Oct 24, 2019
@slint slint removed their assignment Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant