What is botid?
BotID is Vercel's bot protection service that acts as an invisible CAPTCHA to protect against sophisticated bots without showing visible challenges or requiring manual intervention 1. It's designed to protect critical routes in your applications, such as checkouts, signups, and APIs, that are common targets for bots imitating real users.
BotID provides real-time protection against 1:
BotID operates in two modes 1:
The Deep Analysis mode works by 1:
To use BotID, you need to 1:
botid
packagevercel.json
<BotIdClient/>
component to your application layout with protected routescheckBotId()
function in your server-side code (API routes or Server Actions) to verify requestsBotID has a tiered pricing model 1:
checkBotId()
calls (available on Pro and Enterprise plans only)The service is particularly effective against sophisticated bots that use tools like Playwright and Puppeteer to mimic real user behavior, as it can detect these automated sessions even when they solve CAPTCHAs and navigate interfaces like humans would 1.
Sources