Arcjet · Function
request
Use aj.protect(request) in a Next.js handler to run Arcjet rules. Check the returned decision and reject denied requests.
Last updated
Syntax
const decision = await aj.protect(request);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ArcjetDecisionshieldprotectSignupfixedWindowtokenBucketdetectBotcloudflareDRY_RUN