Let AI crawlers in, keep form spam out

Updated

AI search engines read your pages with plain GET requests. Spam bots post your forms. So put the bot check on the form submit, and leave every page open to the crawlers you want. A site-wide bot filter cannot tell the two apart well, and it can turn away ChatGPT, Claude or Perplexity without telling you. This guide shows the robots.txt, a log check that finds blocked crawlers, how to confirm that a crawler is real, and where Bot403 sits. Bot403 checks forms only, and its free plan covers 5,000 checks a month.

Why does bot protection block AI crawlers?

Because a site-wide filter judges every request, and an AI crawler looks like a bot because it is one. A web application firewall, a CDN bot setting or a rate limit sees a page request from a data centre with a bot user agent, and it may answer with a challenge or a 403. The crawler cannot solve a challenge, so the page never reaches the search index of that engine.

Cloudflare's Bot Fight Mode is a common case. Its documentation says: "You cannot bypass or skip Bot Fight Mode using WAF custom rules or Page Rules." Perplexity's crawler page warns about the same thing: "If Bot Fight Mode is enabled, it can still challenge Perplexity bots" even when you add an allow rule for them. Cloudflare's Super Bot Fight Mode runs on its rules engine and supports Skip rules.

Which crawlers do you want to let in?

Let in each engine's search crawler and its fetcher for questions from people. The training crawler is a separate choice. This table lists what each vendor documents:

Engine Search crawler Fetches a page when a person asks Training crawler Published IP list
ChatGPT OAI-SearchBot ChatGPT-User GPTBot openai.com/searchbot.json, openai.com/chatgpt-user.json, openai.com/gptbot.json
Claude Claude-SearchBot Claude-User ClaudeBot claude.com/crawling/bots.json
Perplexity PerplexityBot Perplexity-User none perplexity.ai/perplexitybot.json, perplexity.ai/perplexity-user.json
Google Search and AI Overviews Googlebot Google's user-triggered fetchers Google-Extended (a robots.txt token, not a crawler) developers.google.com/static/crawling/ipranges/common-crawlers.json
Copilot Bingbot none none none listed here

Sources, read on 2026-11-12: OpenAI crawlers, Anthropic crawlers, Perplexity crawlers, Verifying Googlebot. Copilot answers from the Bing index.

Two details matter for the check later. OpenAI says of ChatGPT-User that "robots.txt rules may not apply", because a person started the request. Perplexity says the same of Perplexity-User. So a 403 in your logs for these fetchers comes from your server or CDN, not from robots.txt.

What should robots.txt say?

Name each crawler you want and allow it, and keep the private paths closed. This is a short version of the robots.txt that bot403.com serves today:

robots.txt
# Answer engines: allowed
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: Googlebot
User-agent: Bingbot
Allow: /
Disallow: /dashboard
Disallow: /api/

# Fetchers that a person starts: allowed
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
Allow: /
Disallow: /dashboard
Disallow: /api/

# Training crawlers: allowed, slowed down
User-agent: GPTBot
User-agent: ClaudeBot
Crawl-delay: 5
Allow: /
Disallow: /dashboard
Disallow: /api/

Sitemap: https://example.com/sitemap.xml

A named group replaces the * group for that crawler. So repeat your Disallow lines in each group, or the named crawler may read paths that you closed for everyone else. If you do not want your pages in model training, change the training group to Disallow: /. That does not remove you from AI search answers, because search uses the other crawlers.

robots.txt only asks. It cannot block a request. A spam bot ignores it, and a firewall rule that blocks a crawler wins over an Allow line.

How do you find out if your site blocks them?

Count the answers your server gave to each crawler. On a server with an access log in the common combined format, the status code is the ninth field:

Terminal
grep -E 'OAI-SearchBot|ChatGPT-User|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|GPTBot|ClaudeBot' /var/log/nginx/access.log \
  | awk '{print $9}' | sort | uniq -c | sort -rn

You want almost all 200 and 304. Many 403, 429 or 503 answers mean a filter turns crawlers away. Then look at which paths got an error:

Terminal
grep 'OAI-SearchBot' /var/log/nginx/access.log | awk '$9 >= 400 {print $9, $7}' | sort | uniq -c | sort -rn | head

If a CDN sits in front of your server, a request that the CDN blocked never reaches this log. Then check the CDN's own event log for the same user agents.

How do you know a crawler is real?

Check its IP address, because anyone can send a user agent string. A spam bot can call itself Googlebot too.

For Googlebot, Google gives two ways. One is DNS: a reverse lookup of the IP must end in googlebot.com, google.com or googleusercontent.com, and a forward lookup of that name must give back the same IP. Google's example:

Terminal
host 66.249.66.1
# 1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.
host crawl-66-249-66-1.googlebot.com
# crawl-66-249-66-1.googlebot.com has address 66.249.66.1

The other way, and the only way for OpenAI, Anthropic and Perplexity, is the published IP lists in the table above. Download the list and check that the IP from your log is inside one of its ranges. Anthropic's page says that an IP on its list "indicates that the crawler is coming from Anthropic". Lists change, so download them again from time to time instead of copying them once.

When a firewall rule lets crawlers through, match the user agent and the IP range together. Perplexity's page describes this for Cloudflare WAF and AWS WAF.

Where should spam protection sit?

On the form submit, and nowhere else. Form spam arrives as a POST to your form handler, so that is the one request that needs a check. Pages, the sitemap and robots.txt can stay open to every crawler.

Bot403 works this way. The script does nothing until a visitor focuses a form field. Then it fetches a challenge and the browser solves a small proof of work. Your server checks the answer with one call when the form arrives. A crawler that only reads the page never focuses a field, so it never meets the check. The script also sets no cookies and makes no request to a third party, The script page lists its options, and how it works explains the proof of work.

Bot403 does not replace a firewall. It does not stop DDoS attacks, scrapers or traffic floods. If you need those defences too, keep them, and check the log counts above after each change to them.

What about AI agents that fill in your form?

They can be refused, and you choose how strict to be. Some AI agents drive a real browser to fill in a form for a person. If Playwright, Puppeteer or Selenium controls that browser, Bot403 may see it as automated. The site setting Automated browsers decides what happens:

  • Off: the automation verdict is not used. The proof of work and the hidden honeypot field still apply.
  • Balanced: refuses only signals that the browser of a real person cannot give.
  • Strict: refuses more, and in rare cases a real visitor too.

If you want agents to send your form, use Off and watch your spam. The troubleshooting guide shows the automation answer and its reasons.

Check list

  1. robots.txt names the search crawlers and the fetchers, and allows them.
  2. The log count shows 200 and 304 answers for them, at the server and at the CDN.
  3. Any allow rule matches the user agent and the published IP range.
  4. Bot Fight Mode is off on a site that wants AI crawlers, or you have checked that crawlers still get through.
  5. The bot check sits on the form submit only.

For the privacy side of a CAPTCHA on an EU site, see GDPR and CAPTCHAs. For a form in your framework, start at the guides.

Stop spam, not customers.

The CAPTCHA your visitors never see.

Get started free