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

Rate Limit Redirect #398

Closed
onkoe opened this issue Nov 5, 2023 · 2 comments
Closed

Rate Limit Redirect #398

onkoe opened this issue Nov 5, 2023 · 2 comments
Labels
question Further information is requested

Comments

@onkoe
Copy link

onkoe commented Nov 5, 2023

Hi there! Thanks for the excellent service! I've been using this project on my blog, so my poor little server doesn't have to worry about sending images worldwide!

However, I'm concerned about the rate-limiting - once an IP hits the rate limit, does that mean the server effectively blocks them from seeing images?

If so, does wsrv.nl redirect the users to the original link, or does it just not load the image? Ideally, I'd like to always provide the original link as an option, but I understand if it is not possible to fulfill this request.

Once again, thank you for the awesome project!! 🤩️

@kleisauke kleisauke added the question Further information is requested label Nov 8, 2023
@kleisauke
Copy link
Member

Once a IP-address hits the rate limit it will response with the 429 Too Many Requests HTTP status code. After that, the IP will be blocked at Cloudflare for 1 hour and response with the 403 Forbidden HTTP status code.

The limit is 2500/10m and is based on the sophisticated generic cell rate algorithm which provides a rolling time window and doesn't depend on a background drip process, so it's unlikely that a typical visitor will be rate-limited unless they abuse the service. Moreover, the rate-limit only applies to uncached requests.

You can check your current rate limit quota here: https://wsrv.nl/quota.

@kleisauke
Copy link
Member

I hope this information helped. Please feel free to re-open if questions remain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants