Rate limiting
Klub rate limits public endpoints to reduce abuse. Use this page if you want to tune limits or reuse the limiter in custom routes.
Configuration
bnomei.klub.ratelimit.enabled(defaulttrue)bnomei.klub.ratelimit.limitrequests per minute per IP (default30)
Custom endpoints
You can reuse the limiter in custom routes:
if (!klub()->ratelimit()) {
return Response::json([], 429);
}
You can also override the limit per call:
klub()->ratelimit(100);