Skip to content

vercel-labs/botid-nextjs-starter

Repository files navigation

BotID Starter Repo

This is a minimal Next.js app that uses Vercel BotID to protect a route from advanced bots.

Getting Started

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/generate
  • api/generate/route.ts calling checkBotId and using the result to block the user
  • generate-button.tsx fetching the protected route and showing the result on the page

Using BotID

For up-to-date information, please check out the BotID documentation.

Deploy on Vercel

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.

About

Next.js starter template for using Vercel BotID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •