Arcjet · Method
reason.isBot
Arcjet bot protection detects automated clients and lets you allow or deny selected bots. Configure exactly one of allow or deny, then inspect the decision returned by protect.
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
detectBotArcjetWellKnownBotArcjetBotCategorydecision.isDenied()decision.reason.isBot()decision.resultsreason.isSpoofed()reason.isVerified()