Skip to content
Next.js Middleware · Under 5 minutes

Bot protection for Next.js applications

Add Centinel to your Next.js app using middleware.

Real-time detection

Spot AI crawlers on your Next.js infrastructure the moment they access your site.

Under 2ms latency

Our validation API responds in under 2ms. Zero perceptible impact on your end users.

Crawler metadata

Every response includes crawler identification, category (AI training, inference, search), and access history.

How it works

Centinel + Next.js in three steps

01
Add browser script
A lightweight script sets a session cookie on protected pages.
02
Configure Next.js
Your Next.js instance calls our validation API for protected endpoints.
03
Enforce decisions
Allow, block, or challenge based on the real-time API response.

Find out what's hitting your site right now

Book a 30-minute demo and we'll run a live audit of your traffic before you commit to anything.

No credit card. No commitment. Just a clear picture of your traffic.

"We had no idea 40% of our traffic was AI crawlers until Centinel showed us. Setup took fifteen minutes and we were blocking unauthorized scrapers the same day."

Head of Engineering

Series B SaaS Company