
Short Answer: How do you use server logs to investigate AI crawler visits?
Filter your server logs for known AI crawler names, then check each request’s IP address against the operator’s official, current list before you trust it. Count verified requests by day, page, and status code to see how often each bot visits and what it fetches. A logged visit proves a request happened. It does not prove your page was indexed, used for training, or cited in an AI answer.
Key Takeaways
- A user-agent string is a label the visitor writes about itself. Anyone can copy “GPTBot” in seconds, so a name alone proves nothing.
- OpenAI, Anthropic, and Perplexity publish IP address lists for their bots. Google documents a reverse and forward DNS check and also publishes IP lists.
- If your site sits behind a CDN such as Cloudflare, your origin logs may show the CDN’s IP address instead of the bot’s, and cached pages may never reach your origin at all.
- Some AI fetches are triggered by a person asking a question. OpenAI and Perplexity say robots.txt rules may not apply to those user-triggered visits.
- Logs show access, not outcomes. Whether a page was indexed, trained on, or cited happens on the operator’s side, out of your view.
This is an investigation job, not a robots.txt setup job. The goal is to find out what actually happened on your server, decide whether a visitor calling itself GPTBot or ClaudeBot really is that crawler, and be clear about what the visit does and doesn’t tell you. If you want to decide which bots to allow or block, our AI crawler user-agent list covers each bot’s purpose and robots.txt token.
What are you actually looking for in a server log?
Before you open a log file, settle three questions:
- Who is requesting pages? Note the user-agent and source IP address for each request.
- Is the identity claim believable? A user-agent string is self-reported text, not a verified identity.
- What does this prove? Frequency and volume show crawl behavior and server cost. They don’t show whether content was indexed, used to train a model, or cited in an AI answer.
Keeping the investigation separate from blocking decisions keeps it honest. You can decide what to do about a bot after you know what it is doing.
Which log fields matter for AI crawler investigation?
A standard access log line already holds most of what you need. At minimum, capture:
| Field | Why you need it |
|---|---|
| Timestamp (ideally UTC) | Lets you compare visits consistently and spot crawl patterns |
| Source IP address | The basis for verifying who actually sent the request |
| HTTP method | Shows whether the bot is reading pages (GET, HEAD) or doing something else |
| Request path and query string | Shows what the bot fetched and how widely it crawled |
| Status code | Shows whether the request succeeded, failed, or was blocked |
| Response size | Feeds bandwidth and cost estimates |
| Referrer | Usually empty for crawlers, which helps separate them from human visits |
| User-agent string | The bot’s claimed identity |
| Hostname | Needed if several domains or subdomains share one log stream |
CDN and firewall logs often add fields your origin server lacks, such as bot classifications or whether a page was served from the edge cache. If your site runs behind a CDN, pull both sets of logs. They rarely tell the same story, for reasons covered below.
AI bot log analysis: how should you read user-agent strings?
Each major AI company documents several bots with different jobs. The names you are most likely to see:
| Operator | User-agent names and documented purpose |
|---|---|
| OpenAI | GPTBot crawls content that may be used to train its models. OAI-SearchBot surfaces sites in ChatGPT search. ChatGPT-User visits pages when a person’s request in ChatGPT calls for it. |
| Anthropic | ClaudeBot collects content that could contribute to model training. Claude-SearchBot improves search results. Claude-User fetches pages when a person asks Claude a question. |
| Perplexity | PerplexityBot surfaces and links sites in Perplexity search and, per Perplexity, isn’t used to train foundation models. Perplexity-User fetches pages for user questions. |
| Google-Extended is a robots.txt control token, not a separate crawler. Google says it has no user-agent string of its own; crawling happens under existing Google user agents. |
That last point trips people up. You will never find “Google-Extended” in a log line, because Google uses it only as a robots.txt setting for how content its crawlers already collect can be used. Our explainer on GPTBot vs. OAI-SearchBot vs. ChatGPT-User goes deeper on OpenAI’s three bots.
None of these names verify themselves. A string in a log line is a claim, not proof. Operators also add and rename bots over time, so check the current list rather than relying on a table that can go stale, including this one.
What do AI crawler log lines look like?
The lines below are hypothetical examples, not real log excerpts. They use the common Apache and Nginx “combined” format, the user-agent strings OpenAI and Perplexity publish as examples, and IP addresses from ranges reserved for documentation, so none of them belong to a real crawler.
203.0.113.42 - - [01/Dec/2026:03:12:05 +0000] "GET /blog/example-post/ HTTP/1.1" 200 43012 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot" 198.51.100.17 - - [01/Dec/2026:03:14:21 +0000] "GET /old-page-removed/ HTTP/1.1" 404 512 "-" "Mozilla/5.0 (compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)" 192.0.2.88 - - [01/Dec/2026:03:16:40 +0000] "GET /pricing/?ref=abc123 HTTP/1.1" 200 8810 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot"
Look at the first and third lines. The user-agent strings are identical, character for character. Nothing in the text tells you which one, if either, came from OpenAI. Only the IP check can. In this hypothetical, if 203.0.113.42 appeared in OpenAI’s published GPTBot list and 192.0.2.88 did not, the first request would be verified and the third would be flagged as unverified.
What do status codes tell you about crawler behavior?
| Status code | What it signals |
|---|---|
| 200 | The page was fetched and content was served. |
| 304 | Not modified. The bot asked whether the page changed and your server said no, so no full page was sent. |
| 404 | The page doesn’t exist. Repeated 404s can point to stale links, outdated sitemaps, or guessed URLs. |
| 403 | Forbidden. Your server, firewall, or security plugin refused the request. robots.txt doesn’t produce a 403; it only asks bots not to request a page. |
| 429 | Too many requests. Your server or CDN rate-limited the visitor. |
| 5xx | Your server failed to respond properly, which can happen when crawl volume spikes on uncached pages. |
A high rate of 4xx or 5xx responses for one user-agent is worth investigating as a configuration problem or a scraping pattern. On its own, it says nothing about AI training either way.
What do the requested paths reveal?
What a crawler fetches often tells you more than its name. Look for:
- Orderly crawling that follows your sitemap or internal links, versus scattered requests for random or guessed URLs
- Whether the bot fetched robots.txt before requesting content. OpenAI says GPTBot and OAI-SearchBot may add a “robots.txt” marker to their user-agent string when fetching that file, which makes those requests easier to spot.
- Repeated hits on the same URL in a short window, which can mean retries or poor caching
- Lots of query-string variations, which can multiply requests against dynamic pages and bypass your cache
That last pattern ties directly to cost. A bot that triggers uncached, dynamic pages costs more per request than one reading static, cached pages, whatever its name.
How should you measure crawl frequency?
Count requests by hour and by day instead of judging from one session. Two simple ratios help:
- Request share = AI crawler requests ÷ all requests × 100
- Byte share = AI crawler response bytes ÷ all response bytes × 100
Request share can mislead on its own. A bot making many small requests may matter less to your server than one making fewer requests against large, dynamic pages. Avoid conclusions from a single day, too. Crawl activity shifts from week to week, and one snapshot can overstate or understate a trend.
Verify AI crawler traffic: how do you check IP addresses?
Matching the user-agent is not verification. The operators document two ways to confirm a request is genuine.
1. Match the IP against the operator’s published list. This is the method OpenAI, Anthropic, and Perplexity document:
- OpenAI publishes a separate JSON file of IP ranges for each bot, including GPTBot, OAI-SearchBot, and ChatGPT-User.
- Anthropic says a crawler whose source IP is on its published list is coming from Anthropic.
- Perplexity publishes separate IP files for PerplexityBot and Perplexity-User and recommends matching each user-agent against its own ranges.
2. Run a reverse and forward DNS check. Google documents this method for its crawlers. Look up the hostname for the IP, confirm it ends in googlebot.com, google.com, or googleusercontent.com, then look up that hostname and confirm it points back to the same IP. Google’s own example:
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
Google also publishes IP lists for its crawlers and fetchers if you would rather match ranges automatically.
These lists change. Each of the JSON files we checked carries a creation timestamp, and the dates differ from file to file. Download them fresh on a schedule instead of hard-coding ranges, and treat verification as an ongoing habit rather than a one-time lookup.
Why does user-agent spoofing happen, and how do you catch it?
Copying a user-agent string takes seconds and requires no special access. Scrapers and data-collection tools sometimes borrow a well-known bot name, hoping to slip past rules written for that bot. Signals worth flagging:
- The source IP isn’t on the operator’s current published list
- A reverse DNS lookup fails or returns a hostname that doesn’t match the claimed operator, for operators that document a DNS check
- Behavior that doesn’t fit the bot’s stated purpose, such as a user-triggered fetcher pulling thousands of archive pages in an hour
Label these entries “unverified” rather than automatically calling them malicious. Proxies, network changes, and lists that haven’t caught up yet can all produce false alarms.
What CDN logging gaps do you need to account for?
Two gaps catch site owners out. First, a page served from the CDN’s cache may never reach your origin server, so origin-only analysis can undercount AI crawler visits, especially on popular, cacheable pages.
Second, the IP address in your origin logs may not be the visitor’s at all. Cloudflare explains that because it works as a reverse proxy, your origin server logs a Cloudflare IP address by default, and the original visitor IP arrives in a header called CF-Connecting-IP. If you skip that setup, every IP check you run on origin logs will fail, because you would be checking Cloudflare’s addresses instead of the bot’s. Other CDNs and proxies have similar settings.
Pull CDN or edge logs alongside origin logs when you can, and make sure the true client IP is being recorded before you start verifying anything.
How should you handle log data privately?
IP addresses can count as personal data under some privacy laws. The EU’s GDPR, for example, names internet protocol addresses among the online identifiers that can be linked to people. Your raw logs hold visitors’ IPs as well as bots’, so as a practical recommendation, not legal advice:
- Set retention limits on raw logs instead of keeping them forever
- Restrict access to logs that contain IP-level detail
- Aggregate data by day, bot, and path for long-term trend tracking
- Check with a qualified privacy professional about the rules that apply to your business
What is a step-by-step workflow you can run this week?
- Export a set date range of logs from your origin server and, if you use one, your CDN.
- Confirm the real client IP is recorded, not a CDN or proxy address.
- Normalize timestamps to UTC and standardize paths so filters work consistently.
- Filter for known AI crawler names using a case-insensitive search.
- Verify IPs against each operator’s current published list, or with the DNS check where the operator documents one.
- Cross-check robots.txt. Did automated crawlers fetch it first, and did they stay out of disallowed paths? Remember that user-triggered fetchers such as ChatGPT-User and Perplexity-User may not follow robots.txt, according to OpenAI and Perplexity.
- Aggregate by day, path, and status code to see patterns instead of isolated hits.
- Flag anomalies for manual review, including failed verification and odd path behavior.
What should an AI crawler log review worksheet include?
Use a simple worksheet like this one for each bot or batch of requests. The example values are hypothetical placeholders, not real traffic data.
| Field to record | Example value (hypothetical) and why it matters |
|---|---|
| Date and time (UTC) | 2026-12-01 03:12:05. Shows frequency and timing patterns. |
| Source IP | 203.0.113.42. The basis for IP list or DNS verification. |
| User-agent string | Contains GPTBot/1.4. The initial identity claim. |
| Request path | /blog/example-post/. Shows crawl scope. |
| Status code | 200. Confirms access succeeded. |
| Response size | 42 KB. Feeds bandwidth and cost estimates. |
| Fetched robots.txt first? | Yes or no. A compliance signal for automated crawlers. |
| Verification result | On published list, not on list, or not checked. The core verification step. |
| Verdict | Verified, unverified, or suspicious. The action-ready label. |
What does a crawl visit not prove?
A verified, logged AI crawler visit confirms that a request happened and got a response. It does not confirm:
- That the page was indexed anywhere
- That the content was used to train a model
- That the content will be cited in any AI answer
The operators’ own wording reflects this. OpenAI says GPTBot crawls content that “may be used” in training, and Anthropic says ClaudeBot collects content that could potentially contribute to training. Those steps happen on the operator’s side, where you can’t see them. To measure the outcomes that follow a crawl, pair your logs with citation tracking and referral data. Our guides to agent analytics and the crawl-to-citation timeline cover how those pieces fit together, and our guide to measuring AI referral conversions covers the traffic side.
Learn More About AEO and AI Marketing at Prompt Insider
Since launching earlier this year, Prompt Insider has become a leading authority on AI marketing, Answer Engine Optimization (AEO), large language models, AI search, AI news, and the evolving future of digital discovery. As AEO becomes one of the hottest topics in marketing, Prompt Insider is helping define the conversation around how brands improve visibility, adapt their content strategies, and stay competitive in an increasingly AI-driven search environment.
Prompt Insider is the go-to resource for answer engine optimization, AI marketing, and AI search. Start with our core guides at thepromptinsider.com:
- What Is AEO? Answer Engine Optimization Explained
- AEO vs. SEO vs. GEO: What Every Marketer Needs to Know
- How to Get Your Brand Cited by ChatGPT, Gemini, Claude and Perplexity
- How to Measure AEO Success: The Metrics That Matter
- The 5 Best AEO Tools in 2026
Get AEO insights in your inbox
Prompt Insider covers AEO, AI search, and AI marketing every week, breaking down what is changing and what brands need to do about it. Sign up for our emails at thepromptinsider.com to get it first.
Frequently Asked Questions
How can I tell if an AI crawler visit in my logs is genuine?
Treat the user-agent as a claim. Check the source IP against the operator’s current published IP list, or run a reverse and forward DNS check where the operator documents one, as Google does. Then check whether the bot’s behavior fits its stated purpose.
Does seeing GPTBot or ClaudeBot in my logs mean my content was used for training?
No. A log entry confirms a request happened and got a response. Whether the content was stored, indexed, trained on, or cited happens on the operator’s side, and publishers generally can’t see it in their own logs.
Why do my analytics tools show fewer AI bot visits than my server logs?
Most analytics tools, including GA4, record visits through JavaScript that runs in the browser, and most crawlers never run it. Server and CDN logs record requests directly, so they capture far more crawler activity. Our guide on whether AI search can read JavaScript explains why many AI bots skip scripts.
Can a crawler fake its user-agent string?
Yes, easily. That is why IP verification matters. Flag entries whose IP isn’t on the operator’s published list as unverified, and investigate before assuming bad intent.
Why do the IP addresses in my logs all look the same?
If your site runs behind a CDN or reverse proxy such as Cloudflare, your origin server may be logging the proxy’s IP address instead of the visitor’s. Configure your server to record the original client IP, which Cloudflare passes in the CF-Connecting-IP header.
Does blocking an AI crawler in robots.txt guarantee it won’t access my site?
No. robots.txt states a preference that compliant crawlers follow. It is not access control, and OpenAI and Perplexity say their user-triggered fetchers may not follow it. Content that must stay private needs a login or a network-level block.
The Bottom Line
Server logs are the most direct record of which AI bots visit your site, but only if you verify what you find. Filter by name, confirm the IP against the operator’s current list, make sure your CDN isn’t hiding the real address, and measure patterns over weeks rather than days. Then keep the conclusion honest: a verified visit shows access, and everything after that point needs other evidence. For the latest bot names and purposes, keep our AI crawler user-agent list handy, and see how Bing now separates AI training from AI answers and how Google handles its Google-Agent traffic for related controls.
Sources: OpenAI: Overview of OpenAI crawlers, Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?, Perplexity: Perplexity crawlers, Google: Common crawlers and user agents, Google: Verifying Googlebot and other Google crawlers, Cloudflare: Restoring original visitor IPs, GDPR Recital 30. Bot names, purposes, and IP lists change, so check each operator’s current documentation. We reviewed these sources on December 3, 2026.
About the author
Kai Williams
Kai Williams has been in marketing for years, with a long background in SEO before AEO had a name. He stepped into Answer Engine Optimization the moment AI started reshaping how people search, and has been tracking the shift ever since. At Prompt Insider, he covers AEO, AI marketing, and the future of search, breaking down what is changing and what brands need to do about it.


