Skip to content
masterclass Buddy

Arcjet · Method

aj.protect

Arcjet rate limiting limits how many requests a client can make during a time period. It can identify clients by IP address or by custom values such as a user ID.

Last updated

Syntax

const decision = await aj.protect(request, options);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • fixedWindow
  • tokenBucket
  • withRule
  • with_rule
  • createMiddleware
  • ArcjetDecision
  • characteristics

Source: Rate limiting reference for Next.js | Arcjet Docs. Checked 2026-11-03.