This is a minimal Next.js app that uses Vercel BotID to protect a route from advanced bots.
Install the dependencies:
npm install
Run the development server:
npm run dev
Open http://localhost:3000 with your browser notice:
layout.tsx
containing<BotIdClient>
protecting `/api/generateapi/generate/route.ts
callingcheckBotId
and using the result to block the usergenerate-button.tsx
fetching 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.