AI Search

Are AI Crawlers Visiting Your Site? Check Logs and robots.txt

Are AI Crawlers Visiting Your Site? Check Logs and robots.txt: MeraSEO article cover
Key takeaways
  • Your server’s raw access logs show which AI crawlers really visit, how often and which pages they request. Analytics tools do not show this, because bots do not run your tracking scripts.
  • AI user agents fall into three groups: training crawls, search crawls and user-triggered fetches. Block or allow each group on purpose.
  • Google-Extended is a robots.txt token, not a separate crawler, so you will never see it in your logs.
  • User agents can be faked. Verify with reverse DNS or the vendor’s published IP ranges before you act on a number.

You may have read that AI companies are crawling every site, or that blocking them will hide you from AI search. Your analytics cannot settle either question. GA4 can show human visitors who click through from chatgpt.com or perplexity.ai as referrals, but the crawlers themselves do not run your tracking script, so they never appear. The record of which bots fetched which pages sits in the raw server log, and a first check takes about twenty minutes.

This post shows where to find the logs, what to search for, how to tell real bots from fake ones, and how to write a robots.txt that matches your decision. It does not cover how to get your content quoted by AI tools; that is in our guide to getting cited in Google AI Overviews and ChatGPT.

The three kinds of AI request

Before you look at a log, know what you are looking for. AI-related requests are not one thing:

  • Training crawls collect pages in bulk to build or improve models. Blocking them does not remove you from search results.
  • Search crawls build an index that an AI search product uses to find and cite pages. Blocking these can reduce your chance of being shown or linked there.
  • User-triggered fetches happen when a person asks an assistant to open a page. They are single requests tied to a real person, not a crawl.

Vendors document their own user agents and say which group each belongs to, and they change these pages from time to time. Treat the table below as a starting list and confirm each entry against the vendor’s current documentation before you rely on it.

User agentOperatorTypical purpose
GPTBotOpenAITraining crawl
OAI-SearchBotOpenAISearch index for ChatGPT search
ChatGPT-UserOpenAIFetch when a user asks about a page
ClaudeBotAnthropicTraining crawl
Claude-SearchBotAnthropicSearch index for Claude’s search answers
Claude-UserAnthropicFetch when a user asks Claude about a page
PerplexityBotPerplexitySearch index
Perplexity-UserPerplexityFetch when a user asks about a page
GooglebotGoogleSearch crawling (also feeds Google’s AI features in Search)
BingbotMicrosoftSearch crawling

Google-Extended is not a crawler

Google-Extended is a control token you place in robots.txt to tell Google whether content it has already crawled may be used to train its Gemini models and to ground answers in Gemini apps and Vertex AI. It has no user agent string of its own; Google’s existing crawlers do the fetching, so a search of your logs for “Google-Extended” finds nothing. Google states that it does not affect inclusion or ranking in Google Search. AI Overviews are part of Search, so Google-Extended is not the switch for them. Google’s crawler overview links to the full list of its crawlers and tokens; check there for the current wording.

Step 1: Find your raw access logs

The log is a text file with one line per request. Where it lives depends on your host:

  • cPanel hosting: look for “Raw Access” under Metrics, download the file for your domain, and unzip it. Logs are often kept only for a short window, so download regularly if you want history.
  • Hostinger-style panels: look under the website’s management area for access logs or logs download. Menu names change, so search the panel for “logs”.
  • VPS or your own server: Apache and Nginx normally write to a log directory under /var/log. Ask your developer for the path.
  • Behind a CDN or Cloudflare: the origin log may show the CDN’s IP addresses instead of the visitor’s, and the CDN may answer some requests itself, so those never reach your server. Check the CDN’s own logs or analytics as well.

Step 2: Count the visits

Open a terminal (or ask your developer) and run a simple count. Replace the file name with yours:

grep -Eo "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|bingbot|Googlebot" access.log | sort | uniq -c | sort -rn

This prints how many requests each user agent made. To see which pages one bot asked for, filter by that name and pull out the requested path:

grep "GPTBot" access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

Column positions can differ with your log format, so check one line first. What you are looking for is useful and specific: Are bots reaching your key service pages, or only your homepage? Are they wasting requests on filter URLs, search results and old redirects? Do many requests return 404 or 403? A 403 usually means a firewall rule is already blocking them, which may or may not be what you intended.

Also compare what the bots fetch with what they can read. Many AI crawlers are not known to run JavaScript, so if your prices or service details only appear after scripts load, a bot can request the page and still see very little. Our JavaScript SEO guide shows how to check what is in the initial HTML.

Step 3: Check that the bot is real

Anyone can send a request with the words “Googlebot” or “GPTBot” in the user agent. Before you trust a count or block an address, verify it.

  1. Take the IP address from a suspicious log line.
  2. For Google and Bing, run a reverse DNS lookup on the IP (for example with the host command). A genuine crawler resolves to a Google or Microsoft hostname, and a forward lookup of that hostname returns the same IP. Both search engines document this method.
  3. For AI vendors, compare the IP with the ranges the vendor publishes in its crawler documentation. OpenAI publishes lists for its bots; not every vendor does, so where none exists, treat the user agent as unverified rather than proven.
  4. If the IP does not match, the request is a fake. Treat it as scraping or probing and consider blocking it at the firewall, since robots.txt only binds bots that choose to obey it.

Fake bots are common because “Googlebot” is often allowed through firewalls that block other traffic, so check this before you celebrate a large crawl count.

Step 4: Decide, then write robots.txt

There is no one right answer. The decision depends on how your business earns its money.

Business typeSearch botsTraining botsReasoning
Local service business, clinic, restaurantAllowUsually allowPublic facts about you are what you want repeated accurately
Publisher or paid-content siteAllow if you want citationsConsider blockingContent is the product; training use gives no direct return
Ecommerce storeAllowYour callProduct visibility helps; proprietary descriptions or images may not be something you want trained on
Members-only or gated sitePublic pages onlyBlockAlso protect gated areas with login, not robots.txt

A sample file that allows search bots, blocks two training crawlers and opts out of Google-Extended (without touching Google Search) might look like this:

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

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

Replace the sitemap address with your own, and re-check the vendors’ documentation before relying on any user agent name. One rule catches people out: a crawler obeys only the most specific group that names it. In this file, OAI-SearchBot and PerplexityBot follow their own “Allow: /” group and ignore the /wp-admin/ rule under “User-agent: *”. If you want a path blocked for a named bot, repeat the rule inside its group.

Mistakes that cost visibility

  • Blocking a search bot when you meant to block a training bot, because the names look alike (OAI-SearchBot and GPTBot, Claude-SearchBot and ClaudeBot).
  • Switching on a one-click “block AI bots” option in a CDN, firewall or security plugin without checking which user agents it covers. Some include search and user-triggered fetchers as well as training crawlers.
  • Forgetting that robots.txt is a request, not a lock. Anything sensitive needs authentication.

General robots.txt problems, such as a leftover Disallow rule from a staging site or blocking CSS and JavaScript, are covered in our technical SEO checklist, so check that first.

Step 5: Confirm the change took effect

After you edit robots.txt, open it in a browser and confirm the new content. A CDN can keep serving an older copy for a while; on Hostinger’s CDN we have seen up to ten minutes, so add a query string like ?v=2 to test, or wait. Then watch the logs over the next week or two. Crawlers re-read robots.txt on their own schedule (Google says it generally caches the file for up to 24 hours), so expect a delay, not an instant stop. If a bot you blocked is still requesting pages after that, verify it is real using Step 3 and escalate to a firewall rule if it is not.

For the broader picture of how crawl access fits into search work, see our AI search optimization page and the technical SEO service.

Frequently asked questions

How do I check if ChatGPT is crawling my website?

Download your raw server access log and search for the user agents OpenAI documents: GPTBot, OAI-SearchBot and ChatGPT-User. Count the requests and check the pages requested. Then verify the IP addresses against the ranges OpenAI publishes, since anyone can fake a user agent string.

Does blocking GPTBot remove my site from Google?

No. GPTBot is OpenAI’s crawler and has no connection to Google Search. Blocking it affects only OpenAI’s use of your pages, so your Google rankings stay as they are. Google Search uses Googlebot, and blocking that would be a very different decision with real ranking consequences.

What is Google-Extended?

Google-Extended is a robots.txt token that controls whether Google may use your content to train Gemini models and to ground Gemini answers. It is not a separate crawler, so it never appears in server logs, and Google says blocking it does not affect your inclusion or ranking in Google Search, which includes AI Overviews.

Should a small business block AI crawlers?

Most local service businesses benefit from being found and described accurately, so they allow search-related bots. Whether to allow training bots is a business decision. Publishers selling content often block them, while others accept them. Whatever you choose, base it on your logs rather than guesswork.

Want a crawl and robots.txt check done for you?

We review your logs, verify which bots are real and set up robots.txt rules that match your business goals.

Talk about AI search optimization →

Related Post

Call Now Button