This is a minimal Next.js app that uses Vercel BotID to protect a route from advanced bots.
Install the dependencies:
npm installRun the development server:
npm run devOpen http://localhost:3000 with your browser notice:
layout.tsxcontaining<BotIdClient>protecting `/api/generateapi/generate/route.tscallingcheckBotIdand using the result to block the usergenerate-button.tsxfetching the protected route and showing the result on the page
For up-to-date information, please check out the BotID documentation.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.