Home / Guides

Guide

How to see if AI crawlers visit your site in your server logs

Your access logs already record every visit from GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and the rest. Here's how to find them, count them, see which pages they read and whether they got an error, and check that a bot is real and not something pretending to be one.

Updated October 30, 2026 · By the Footnotely team

The short answer

Every request to your site lands in your web server's access log with a user agent string, and the AI companies name their bots in that string. Search the log for those names, then look at three things: how often each bot comes, which pages it fetches, and what status code it got back. A 200 means it read the page. A 403, 429 or a challenge page means something blocked it, even if your robots.txt allows it.

Because anyone can fake a user agent, check the IP address of anything that matters against the ranges each company publishes.

Step 1: Know which names to look for

Each company runs separate bots for training, for search, and for fetches a user asked for. These are the names in their docs:

One handy detail: OpenAI says that when its bots fetch robots.txt, they may add a robots.txt marker to the user agent string, so you can tell those requests apart even "when their logs do not include paths."

Step 2: Find and count AI bot visits

On a server running nginx or Apache, the access log is usually a plain text file. nginx's default combined format is $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" (nginx docs), so the IP is the first field, the path is the 7th and the status code is the 9th. Adjust the file name and field numbers if your format differs.

Count visits per bot:

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

Keep the search case sensitive. The user agent strings also contain lowercase links like openai.com/gptbot, and a case insensitive search would count those twice.

See which pages one bot fetched most:

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

See what status codes it got:

grep "OAI-SearchBot" access.log | awk '{print $9}' | sort | uniq -c

Swap in PerplexityBot, Claude-SearchBot, Googlebot or bingbot as needed. Older logs are often rotated and gzipped (for example access.log.2.gz); zgrep searches those the same way.

Step 3: Read what you found

Step 4: Check that a bot is real

Google warns that "the HTTP user agent string can be spoofed." Scrapers sometimes borrow familiar bot names, so before you allowlist a bot or draw conclusions, check its IP addresses. List the IPs using a name:

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

Then compare them with the published ranges:

These files list CIDR prefixes, so an IP has to fall inside a range, not match exactly. This checks one IP against a list (replace the IP and URL):

curl -s https://openai.com/gptbot.json | python3 -c 'import sys,json,ipaddress; ip=ipaddress.ip_address(sys.argv[1]); d=json.load(sys.stdin); print(any(ip in ipaddress.ip_network(p.get("ipv4Prefix") or p.get("ipv6Prefix")) for p in d["prefixes"]))' 203.0.113.7

It prints True if the IP is in a published range. The lists change, so fetch them fresh. Bing says to refresh its list daily "as we can change this list any time."

For Google and Bing you can also use DNS. Google's steps: run a reverse lookup on the IP with host, check the name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup on that name and confirm it returns the same IP. Bing's steps are the same, with names ending in search.msn.com.

Anthropic's help page doesn't give example user agent strings, so match on the bot names. If you think one of its bots is misbehaving, it asks you to email claudebot@anthropic.com from an address at the domain in question.

No raw logs? Other places to look

A quick checklist

  1. Search your logs for the bot names above, matching case exactly.
  2. For the search bots you want (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, bingbot), confirm your key pages return 200.
  3. Treat 403, 429 and challenge responses to those bots as a block to fix at your firewall, CDN or host.
  4. Verify any IP that matters against the company's published list, fetched fresh.
  5. Don't look for Google-Extended in logs; it's a robots.txt control only.
  6. Remember a visit isn't a citation. Ask the assistants your customers' questions to see if they name you.

Once bots can read your pages, these guides cover each assistant: ChatGPT search, Claude, Perplexity, Gemini, Microsoft Copilot and Google AI Overviews.

Sources

Checked October 30, 2026. Bot names, user agent strings and IP lists change from time to time; the linked pages have the current details.

FAQ

Which names should I search my logs for?

For OpenAI: GPTBot, OAI-SearchBot and ChatGPT-User. For Anthropic: ClaudeBot, Claude-SearchBot and Claude-User. For Perplexity: PerplexityBot and Perplexity-User. Google's AI features use Googlebot, and Bing's use bingbot.

Why can't I find Google-Extended in my logs?

Google says Google-Extended doesn't have a separate HTTP user agent string. Crawling is done with existing Google user agents, and the Google-Extended token only works as a robots.txt control. So you'll see Googlebot, never Google-Extended.

Is a request that says GPTBot always from OpenAI?

No. Anyone can put any name in a user agent string. To check, compare the IP address with the ranges the company publishes (OpenAI, Perplexity, Google and Bing all publish JSON lists), or for Google and Bing use a reverse and then forward DNS lookup.

What does a ChatGPT-User or Perplexity-User visit mean?

Both companies describe these as fetches made because of a user's request, not automatic crawling. OpenAI says ChatGPT-User may visit a page when someone asks ChatGPT a question. So these visits suggest a person's question led the assistant to your page, though the log won't show what they asked.

My host doesn't give me raw logs. What can I do?

If your site runs through Cloudflare, its AI Crawl Control dashboard shows which AI services access your site and is available on all plans. Other hosts and CDNs often have request logs or log export features; check their docs.

Do crawler visits mean I'll be cited?

No. A visit means the bot could read the page. Whether an assistant cites it is a separate decision that none of these companies guarantees. Check the answers themselves for that.

Track it every week instead of checking by hand

Footnotely asks your buyer questions on ChatGPT, Perplexity and Gemini several times per run and shows the mention rate with its sample size, the raw answers, and who gets named instead of you. Free plan, then from $29/mo.

More guides