Article
How to spot AI crawlers in your server logs
Short answer
To see whether AI companies’ bots visit your site, search your web server’s access log for the user agent names they publish, such as OAI-SearchBot, GPTBot, ChatGPT-User, OAI-AdsBot, ClaudeBot, Claude-User, PerplexityBot and Perplexity-User. (OpenAI) (Anthropic) (Perplexity) Then check the IP address against the company’s published ranges, because a name in a log line is just a claim. (OpenAI) (Perplexity)
Analytics tools like GA4 run in the browser, so they don’t show these visits. Logs do, because every request to your server gets a line.
What a log line contains
Most hosts use something close to the standard combined format. nginx always includes it, and uses it when no other format is set. (nginx) It looks like this: (nginx)
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';| Field | What it tells you |
|---|---|
| $remote_addr | The client address, meaning the IP the request came from (nginx) |
| $time_local | Local time in Common Log Format (nginx) |
| $request | The full original request line, like GET /pricing/ (nginx) |
| $status | The response status (nginx) |
| $http_referer | The Referer request header, the page that linked if one was sent (nginx) |
| $http_user_agent | The User-Agent request header, the name the visitor gives itself (nginx) |
Our read: on shared hosting, look for a Logs or Raw Access section in your control panel. If your host doesn’t offer logs, a CDN’s logs can stand in.
The names to search for
Here are the user agents three AI companies document, and what each one is for, in their own words.
| User agent | Company | Purpose |
|---|---|---|
| OAI-SearchBot | OpenAI | Surfaces websites in ChatGPT’s search features (OpenAI) |
| GPTBot | OpenAI | Crawls content that may be used in training foundation models (OpenAI) |
| ChatGPT-User | OpenAI | Visits pages for certain user actions in ChatGPT (OpenAI) |
| OAI-AdsBot | OpenAI | Checks landing pages submitted as ads on ChatGPT (OpenAI) |
| ClaudeBot | Anthropic | Collects content that could contribute to model training (Anthropic) |
| Claude-User | Anthropic | Accesses sites when people ask Claude questions (Anthropic) |
| Claude-SearchBot | Anthropic | Improves search result quality (Anthropic) |
| PerplexityBot | Perplexity | Surfaces and links websites in Perplexity search results (Perplexity) |
| Perplexity-User | Perplexity | Visits pages when people ask Perplexity a question (Perplexity) |
Note
Note: OpenAI says ChatGPT-User isn’t used for crawling the web automatically, and because those visits are started by a user, robots.txt rules may not apply. (OpenAI) Perplexity says the same kind of thing for Perplexity-User, which it says isn’t used for web crawling. (Perplexity)
Our read: that split matters for reading logs. Search and training bots tell you about crawling. The user-triggered agents hint that a real person asked a question that sent the tool to your page.
A quick search
Our read: if you can download your log file, a plain text search is enough to start. On a Mac or Linux terminal:
grep -E "OAI-SearchBot|GPTBot|ChatGPT-User|OAI-AdsBot|ClaudeBot|Claude-User|Claude-SearchBot|PerplexityBot|Perplexity-User" access.logCount hits per agent, then look at which paths they asked for and what status they got back. A pile of 404s or 403s means the bot is hitting dead links or getting blocked.
OpenAI notes it may add a robots.txt marker to the user agent when fetching robots.txt, so those requests are easy to tell apart even when logs don’t include paths. (OpenAI)
Check the IP, not just the name
Anyone can type any user agent. That’s why the companies publish IP lists.
| Bot | Published IP list |
|---|---|
| OAI-SearchBot | openai.com/searchbot.json (OpenAI) |
| GPTBot | openai.com/gptbot.json (OpenAI) |
| ChatGPT-User | openai.com/chatgpt-user.json (OpenAI) |
| OAI-AdsBot | openai.com/adsbot.json (OpenAI) |
| PerplexityBot | perplexity.ai/perplexitybot.json (Perplexity) |
| Perplexity-User | perplexity.ai/perplexity-user.json (Perplexity) |
| Anthropic bots | claude.com/crawling/bots.json (Anthropic) |
Anthropic also links to a list and says a crawler with a source IP on it is coming from Anthropic. (Anthropic) Perplexity adds that each bot has its own IP ranges, so you should match each user agent against its own list. (Perplexity)
Watch out
Watch out: a hit you can’t match to a published range shouldn’t go in your counts. Our read: treat it as unverified, not as proof an AI company visited.
What a hit does and doesn’t tell you
A verified hit tells you a bot fetched a URL at a time and got a status code. That’s it.
It doesn’t tell you whether your page was used in an answer, cited, or shown to anyone. None of the three documentation pages we used says a crawl leads to a citation. Our read: logs answer can they reach my pages, not am I being cited.
Key takeaway
What to do next
- Get access to your raw access logs from your host or CDN. (nginx)
- Search for the nine user agents above. (OpenAI) (Anthropic) (Perplexity)
- Match each hit’s IP against that bot’s published list. (OpenAI) (Perplexity)
- Look at status codes for verified hits, and fix any 404s on pages you care about.
- Repeat monthly and keep the counts in a sheet.
Get the worksheet
Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.
Read how Be In GEO works for how we source and check our pages.
FAQ
Why doesn’t GA4 show these bots?
Our read: GA4 runs as a script in the browser, and crawlers usually just fetch the HTML. Server logs record the request itself.
Does blocking an AI bot’s IP work?
Anthropic says blocking its IPs may not work correctly or guarantee an opt-out, because it stops the bot reading your robots.txt. (Anthropic)