Arcjet · Function
isBot
Arcjet's detectBot rule finds automated clients in Next.js requests. You can allow selected bots, deny selected bots, or block all detected bots with an empty allow list.
Last updated
Syntax
detectBot({ mode?: "LIVE" | "DRY_RUN", allow: Array<ArcjetWellKnownBot | ArcjetBotCategory> })
detectBot({ mode?: "LIVE" | "DRY_RUN", deny: Array<ArcjetWellKnownBot | ArcjetBotCategory> })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
arcjetdetectBotdecision.isDenied()decision.reason.isBot()decision.resultsisSpoofedBotisMissingUserAgentArcjet Filters