Know who is really knocking
Zarex recognises over 1,400 bots and verifies the identity of those claiming to be Google, Bing, OpenAI or Meta. An impostor is blocked; the real crawler keeps indexing your site.
Scenario
ALLOW · allowedThe bot claims to be Googlebot, and its address is in the ranges Google publishes. Identity proven: verified is true.
Zarex responseDocs
{
"decision_id": "8f14e45fceea167a5a36dedd4bea2543",
"verdict": "ALLOW",
"results": [
{
"rule_type": "BOT_DETECTION",
"verdict": "ALLOW",
"is_dry_run": false,
"reason": {
"bot": true,
"name": "Googlebot",
"category": "CATEGORY:SEARCH_ENGINE",
"reason": "bot is explicitly allowed",
"verified": true,
"method": "published_ranges"
}
}
],
"ruleset_version": "11.3.0+shield-2.0",
"ip": {
"country": "US",
"asn": "AS15169"
}
}The User-Agent says who it claims to be, not who it is
Any script can write “Googlebot” in its User-Agent. So Zarex compares the IP address with what the operator itself publishes: the address ranges of Google, Microsoft, Apple, DuckDuckGo, OpenAI and Perplexity; the origin network for the link-preview bots of Facebook, X, LinkedIn and Telegram; and, for other bots that claim a domain, a forward-confirmed reverse DNS check.
The official lists are built into Zarex and refreshed every day. For the major search engines, verification happens without any network call during the request.
You choose who gets in
Allow search engines, block AI crawlers or scrapers, by name or by category: search engines, AI, social networks, monitoring, SEO tools, HTTP libraries… A recognised bot that is not on your allow list is denied.
When an identity cannot be proven (WhatsApp, Slack, most small bots), the decision says so: verified is false. You know what to trust before granting any privilege.
Fake humans, opt-in
On your sensitive routes, also block Tor exits, commercial VPNs, browsers connecting from a hosting provider, or browsers whose headers contradict their User-Agent.
These signals can hit real users: they are never on by default, and you test them in DRY_RUN first.
A limit to know
A bot that perfectly imitates a browser is not recognised by this rule. Combine it with rate limiting.
In your code
One rule, one list of allowed or denied categories.
import { withZarex, detectBot } from "@zarex/next";
export const GET = withZarex(
{
key: process.env.ZAREX_KEY!,
ipSource: "vercel",
rules: [detectBot({ allow: ["CATEGORY:SEARCH_ENGINE"] })],
},
async () => Response.json({ produits: [] })
);Ready for production
Official lists built in
Ranges published by the operators, refreshed daily.
No network call
Major crawlers are verified without waiting for DNS.
DRY_RUN
See what would be blocked before blocking.
Every decision explained
Bot, category, verification method: all in the log.
Other protections
Start by observing
Turn the rule on in DRY_RUN, watch the log, then switch to LIVE. A question before you start? Write to us.