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 (default true)
  • bnomei.klub.ratelimit.limit requests per minute per IP (default 30)

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);
Kirby Klub is not affiliated with the developers of Kirby CMS. We are merely standing on the shoulder of giants.
© 2026 Bruno Meilick All rights reserved.