Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

How to Tell If an AI Bot Sees a CAPTCHA Instead of Your Site: Checking Logs and curl

Your page loads in a browser, but ChatGPT's or Alice's AI bot may receive a "prove you're not a robot" CAPTCHA instead of the article. Two sources of evidence show this: server logs (the request journal) show whether the bot came at all, and curl, a tool for making requests to a site, saves the HTML the bot would receive. A 200 status code can be misleading, since it may wrap a visitor check rather than the text. So hand your developer the URL, the timestamp, the IP, the server response, and the saved HTML.

AI-processed from Habr AI; edited by Hamidun News
How to Tell If an AI Bot Sees a CAPTCHA Instead of Your Site: Checking Logs and curl
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1OAI-SearchBot powers ChatGPT search, while GPTBot is for training models
Key metric #2Cloudflare Bot Fight Mode challenges a bot even when a WAF rule allows it
Key metric #3Changes to robots.txt take about 24 hours to apply to OpenAI's search

You published a new page. It opens fine in a browser, but it doesn't appear in ChatGPT's or Alice AI's answers. The first instinct is to check robots.

txt, the file with rules for robots. But the problem is often somewhere else: the bot arrives and gets a "prove you're not a robot" check instead of the article. To stop guessing, you need three things: the crawl rules, the logs (the server journal where every request is recorded, including the bot's), and curl, a simple tool for making requests to a site that saves the HTML the bot would receive.

A separate trap is Cloudflare protection, which can challenge a bot even if you have allowed it. Let's go through it step by step.

Who's who among the bots

The first thing to do is work out which bot you are interested in. A block on one does not affect another.

  • OAI-SearchBot is ChatGPT's search crawler. This is the one you need to check crawl permission for.
  • GPTBot collects content that may be used to train OpenAI models. A block on it applies to training, not to search.
  • ChatGPT-User handles actions triggered by a user's request. It does not crawl the web automatically, and robots.txt may not apply to it.
  • PerplexityBot is Perplexity's search crawler. It does not collect content for training base models.
  • Perplexity-User loads a page on a person's request and usually ignores robots.txt.

Yandex works differently. Its robot finds a site through external links, and you can notify it of a new page via "Page Recrawl" in Webmaster. This is only a signal: it does not guarantee that every page will be crawled, and submitting a URL does not confirm that it was fetched. For Alice AI, a page's availability in Search matters directly: according to Yandex's documentation, it sends clarifying queries to Search and uses its results.

Logs, IPs and robots.txt

A name in the User-Agent is not enough. It is a string the sender uses to identify itself to the site, and it is easy to fake. So the order is as follows.

  1. Find the request to the target URL and record the time, IP, User-Agent, status code and response size. In an Nginx log, you can start the search with rg -i -e OAI-SearchBot -e PerplexityBot /var/log/nginx/access.log. If a CDN (an intermediate delivery and protection service for the site) is in front, ask your developer for its logs: the request may have been stopped by protection and never reached the server.
  2. Verify the sender. OAI-SearchBot IPs are checked against the ranges published in OpenAI's documentation, and Perplexity publishes a separate IP list for each agent. For Yandex, a reverse DNS lookup is performed, followed by a forward lookup, and it must return the original IP.
  3. Check robots.txt: the rules for the relevant agent, the page's path, and whether the file itself is accessible. Under RFC 9309, if the file is unreachable due to a server or network error, a robot must treat crawling as fully disallowed.
  4. Record the HTTP response. Codes 403 (access forbidden), 429 (too many requests), or 5xx (server error) are a reason to look for an event in the CDN, WAF (web application firewall), or anti-bot protection. For redirects, save the entire chain of addresses.

OpenAI advises allowing OAI-SearchBot both in robots.txt and by its published IP ranges. Changes to robots.txt may take about 24 hours to apply to search, so don't panic right away.

What curl shows and why a 200 is misleading

Curl saves the headers and HTML of a test response. For example: curl -sS -L -A OAI-SearchBot -D page.headers -o page.html https://example.org/new-page/. Then search the file for a distinctive word from the main text, and for the words captcha or challenge. An important caveat: the request comes from your IP, so spoofing the User-Agent does not prove that the real bot would pass. A match on "captcha" is a reason to open the HTML, but on its own it does not count as a block.

A 200 response is easy to over-trust. It may contain a visitor check instead of the text. Perplexity describes a Cloudflare trap: Bot Fight Mode can keep challenging bots even when a WAF rule allows them. A Skip rule must sit above the blocking rules, because it only bypasses the rules that come after it.

The second common case: the text appears in the browser but is missing from the saved HTML. That means it is loaded through JavaScript, which curl does not execute. The task for the developer is to serve the main text in the HTML without requiring scripts to run. Yandex leaves JavaScript execution to the discretion of its robot, and deferred loading can lead to incomplete indexing. While you are at it, check for a robots meta tag with noindex or none: it hides the page from search while keeping it available to visitors.

What to pass to the developer

A good ticket contains the URL, the request time, the result of the sender verification, the HTTP responses, and the HTML. Add the block event from the protection log, or specify which text is missing from the HTML. Example: the server returns 200 but serves a visitor check. The check should be removed for verified search bots and the fetch repeated. Acceptance criterion: the bot receives the page's main text.

In short: the log shows that the bot came, curl shows what the server returns to a test request, and Webmaster shows which version of the page is indexed by Yandex. A successful HTML fetch confirms access, but it does not prove indexing. These levels should be checked separately.

Story

Key Questions Answered

Who's who among the bots?

The first thing to do is work out which bot you are interested in. A block on one does not affect another. OAI-SearchBot is ChatGPT's search crawler. This is the one you need to check crawl permission for. GPTBot collects content that may be used to train OpenAI models. A block on it applies to training, not to search. ChatGPT-User handles actions triggered by a user's request. It does not crawl the web automatically, and robots.txt may not apply to it. PerplexityBot is Perplexity's search crawler.

What are the key details on Logs, IPs and robots.txt?

A name in the User-Agent is not enough. It is a string the sender uses to identify itself to the site, and it is easy to fake. So the order is as follows. Find the request to the target URL and record the time, IP, User-Agent, status code and response size. In an Nginx log, you can start the search with rg -i -e OAI-SearchBot -e PerplexityBot /var/log/nginx/access.log.

What curl shows and why a 200 is misleading?

Curl saves the headers and HTML of a test response. For example: curl -sS -L -A OAI-SearchBot -D page.headers -o page.html https://example.org/new-page/. Then search the file for a distinctive word from the main text, and for the words captcha or challenge. An important caveat: the request comes from your IP, so spoofing the User-Agent does not prove that the real bot would pass. A match on "captcha" is a reason to open the HTML, but on its own it does not count as a block. A 200 response is easy to over-trust.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Private AI Builders Community · Vibe Club

Ship AI Faster with Founders, Engineers & Weekly Architecture Reviews

Inside Vibe Club (hamidun.com/club) — weekly live masterminds with Zhemal Khamidun, Tech Radar, full LMS access, and 370+ production Claude Code skills.

Join Vibe Club →Free intensive — waitlist
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — How to Tell If an AI Bot Sees a CAPTCHA Instead of Your Site: Checking Logs and curl https://news.hamidun.com/en/news/18350/how-to-tell-if-an-ai-bot-sees-a-captcha-instead-of-your-site

What do you think?
Loading comments…