LLMVisibility.wikiThe sourced reference on how AI assistants learn about, find and cite brands

Reading server logs for AI fetchers

From LLMVisibility.wiki

A web server access log records the requests a site receives, including requests from automated clients such as search crawlers and AI fetchers.[1] Operators including OpenAI, Anthropic, Perplexity and Common Crawl publish the user-agent strings and IP address lists their robots use, which makes it possible to separate training crawls, search indexing and user-triggered fetches in a log file.[3][4][5][8] Google and Bing document reverse and forward DNS checks that confirm whether a request claiming to be a crawler really came from them.[6][7]

Key facts. Server access logs show which AI user agents requested which URLs and when, but confirming identity requires DNS or published IP checks, and logs do not record whether an assistant later cited the page.[1][6][3]

What an access log records

The Apache HTTP Server access log records all requests processed by the server, with its location and contents controlled by the CustomLog directive and its field layout by LogFormat.[1] The widely used Common Log Format produces entries such as 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326, where the fields are the client IP address, the RFC 1413 identity, the authenticated user ID, the time the request was received, the request line in double quotes, the status code and the bytes returned.[1] A hyphen in a field means that the requested piece of information is not available.[1]

The Common Log Format example does not include the user-agent string, but Apache's log format is highly configurable through format strings, so fields can be added.[1] On nginx, the ngx_http_log_module writes request logs in a specified format, and the documented example configuration logs the remote address, time, request line, status, bytes sent, referer and "$http_user_agent".[2] If no format is named, nginx uses the predefined "combined" format.[2] Other available variables include $status, $request_time, $request_length and $time_iso8601.[2] Apache's documentation notes that storing information in the access log is only the start, and that analyzing it to produce useful statistics is a separate step.[1]

Finding AI user agents

Once the user-agent field is being logged, AI-related requests can be located by matching on the token each operator publishes.[2][3] The table below lists agents named in official operator documentation; the AI crawler and fetcher reference covers the same agents in more detail.[3][4][5][8]

User-agent tokenOperator and stated purpose
GPTBotOpenAI; crawls content that may be used in training generative AI foundation models[3]
OAI-SearchBotOpenAI; surfaces websites in ChatGPT's search features[3]
ChatGPT-UserOpenAI; visits pages for certain user actions in ChatGPT and Custom GPTs[3]
OAI-AdsBotOpenAI; visits pages submitted as ads on ChatGPT[3]
ClaudeBotAnthropic; collects web content that could contribute to model training[4]
Claude-SearchBotAnthropic; indexes content to improve search result quality[4]
Claude-UserAnthropic; accesses sites in response to user questions[4]
PerplexityBotPerplexity; surfaces and links websites in Perplexity search results[5]
Perplexity-UserPerplexity; visits pages to help answer a user question[5]
CCBot/2.0Common Crawl Foundation; builds an open repository of web crawl data[8]

Full strings are longer than the token. OpenAI publishes, for example, "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot", and notes that version numbers may change.[3] Perplexity's documented string is "Mozilla/5.0 (compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)", also subject to version changes.[5] Matching on the stable token rather than the whole string therefore survives version bumps.[3][5] Classic search crawlers appear alongside them, such as "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)".[7]

Training, search and user-triggered requests

Google groups its robots into common crawlers that always respect robots.txt for automatic crawls, special-case crawlers that may or may not respect robots.txt, and user-triggered fetchers that ignore robots.txt because the fetch was requested by a user.[6] AI operators use a similar split. OpenAI treats its robots.txt settings as independent, so a site can allow OAI-SearchBot to appear in search results while disallowing GPTBot to signal that crawled content should not be used for training.[3] Anthropic likewise separates ClaudeBot for training, Claude-SearchBot for search indexing and Claude-User for user-initiated requests, and states what is lost when each is disabled.[4]

The distinction matters when reading logs. Hits from GPTBot, ClaudeBot or CCBot relate to corpus building for training data and web corpora.[3][4][8] Hits from OAI-SearchBot, Claude-SearchBot or PerplexityBot relate to search indexes used when an assistant performs grounding and web search.[3][4][5] Because those fetches are user-initiated, OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores robots.txt.[3][5] Pages about how ChatGPT finds and cites sources, how Claude finds and cites sources and how Perplexity finds and cites sources cover the assistant side of the same traffic.[3][4][5]

Verifying that a bot is genuine

A user-agent string is self-reported, so operators publish verification procedures.[6] Google's documented manual method is to run a reverse DNS lookup on the accessing IP address, check that the resulting domain is googlebot.com, google.com or googleusercontent.com, then run a forward DNS lookup on that name and confirm it returns the original IP.[6] Bing describes the same two-step reverse-then-forward check, with names ending in search.msn.com, and also offers a Verify Bingbot tool.[7] Common Crawl notes that it is aware of crawlers falsely identifying themselves as CCBot and now runs CCBot on dedicated IP ranges with reverse DNS, so a logged request can be checked against hostnames under crawl.commoncrawl.org.[8]

Where reverse DNS is not offered, published address lists serve the same purpose. OpenAI publishes separate IP address files for OAI-SearchBot, OAI-AdsBot, GPTBot and ChatGPT-User.[3] Perplexity publishes JSON endpoints for PerplexityBot and Perplexity-User and recommends combining user-agent matching with IP verification.[5] Anthropic states that a source IP on its published list indicates the crawler is coming from Anthropic.[4] Common Crawl provides its IPv4 and IPv6 ranges as JSON.[8] Bing warns against hardcoding address ranges and says any such list should be refreshed daily because it can change at any time.[7] Google also offers automatic matching against published IP ranges in CIDR format for large-scale lookups.[6] One practical caution in log reading is that the logged IP is not necessarily the end machine: if a proxy sits between client and server, the proxy address is recorded.[1]

Requests for robots.txt

Robots fetch robots.txt before or alongside content requests, and those hits appear in the log like any other request.[3] OpenAI may add a robots.txt marker to its user-agent string when fetching that file, for example "compatible; OAI-SearchBot/1.4; robots.txt; +https://openai.com/searchbot", explaining that the marker helps site owners distinguish robots.txt requests from other resources, especially when their logs do not include paths.[3] OpenAI also notes that it can take around 24 hours from a robots.txt update for its search systems to adjust, so log behavior may lag a configuration change.[3]

Robots.txt hits are also a signal that blocking by IP address can backfire. Anthropic states that blocking the IP addresses its bots operate from may not work correctly or guarantee an opt-out, because it impedes the ability to read robots.txt.[4] Anthropic supports the non-standard Crawl-delay extension and honors robots.txt directives, and as of October 30, 2026 says it has begun recognizing a machine-readable preference signal about AI training based on draft work in the IETF aipref working group, with rules naming ClaudeBot directly taking priority over the general signal.[4]

Allowing verified bots through a firewall

If logs show missing or blocked requests, a web application firewall may be filtering them.[5] Perplexity documents Cloudflare and AWS WAF configurations that match each bot's user agent against its own published IP ranges, set the action to skip or allow, and place the rule above blocking rules so it is evaluated first.[5] It also notes that Cloudflare's Bot Fight Mode cannot be skipped with WAF custom rules and may still challenge matching bots, and recommends automating updates of the IP ranges and monitoring logs to confirm the rules behave as expected.[5]

Limits of log analysis

A log entry records a request, not an outcome. The documented fields cover the client address, time, request line, status code and bytes sent, and nothing in them describes what an assistant did with the content afterward.[1] OpenAI states that ChatGPT-User is not used to determine whether content may appear in Search, so a user-triggered hit should not be read as evidence of indexing.[3] OpenAI also notes that when a site allows both GPTBot and OAI-SearchBot, results from just one crawl may be used for both purposes to avoid duplicative crawling, which means the count of requests per agent does not map cleanly onto use cases.[3]

Logging configuration adds further gaps. nginx supports conditional logging that can exclude whole response classes, and the documentation gives an example that stops logging 2xx and 3xx responses.[2] Buffered and gzipped writes mean recent entries may not yet be on disk.[2] Some logs do not include paths at all, which is why OpenAI adds a robots.txt marker to the user agent instead.[3] For background on where model knowledge comes from at all, see LLM visibility.[3]

Common questions

How do I see AI bots in my server logs?

First make sure the user-agent field is being logged: Apache's format is set with LogFormat and CustomLog, and nginx uses log_format with variables such as $http_user_agent.[1][2] Then filter the log for published tokens such as GPTBot, OAI-SearchBot and ChatGPT-User, ClaudeBot, Claude-SearchBot and Claude-User, PerplexityBot and Perplexity-User, and CCBot.[3][4][5][8] Matching the token rather than the full string is more robust, because operators say version numbers in the strings may change.[3][5]

Which user agent does ChatGPT use when it visits a page for a user?

OpenAI uses ChatGPT-User for certain user actions in ChatGPT and Custom GPTs, and says it may visit a web page with that agent when a user asks a question.[3] The published full string is "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot".[3] OpenAI states that ChatGPT-User is not used for crawling the web automatically, that robots.txt rules may not apply because the action is user-initiated, and that OAI-SearchBot is the agent to use in robots.txt for managing search opt-outs.[3]

How can I tell if a request really came from a search or AI crawler?

Google and Bing both document a two-step DNS check: run a reverse DNS lookup on the logged IP address, confirm the hostname belongs to the operator's domain, then run a forward lookup on that hostname and confirm it resolves back to the same IP.[6][7] Common Crawl supports the same check through hostnames under crawl.commoncrawl.org and warns that some crawlers falsely identify themselves as CCBot.[8] Alternatively, match the IP against published address lists, which OpenAI, Anthropic, Perplexity, Common Crawl and Google all provide.[3][4][5][8][6]

Do server logs show whether my page was cited?

No. An access log entry records the client address, time, request line, status code and bytes sent, and those fields say nothing about what an assistant produced afterward.[1] OpenAI also states that ChatGPT-User activity is not used to determine whether content appears in Search, so even a user-triggered fetch is not evidence of inclusion in an index or an answer.[3]

Why do I see robots.txt requests with an unusual user-agent string?

OpenAI says it may add a robots.txt marker to its user-agent string when fetching that file, producing strings such as "compatible; OAI-SearchBot/1.4; robots.txt; +https://openai.com/searchbot".[3] The marker exists to help site owners distinguish robots.txt requests from other resource requests, particularly when their logs do not record paths.[3] OpenAI adds that it can take roughly 24 hours after a robots.txt change for its search systems to adjust.[3]

See also

References

  1. ^ a b c d e f g h i j k l m "Log Files". Apache HTTP Server Version 2.4 Documentation. Retrieved November 2026.
  2. ^ a b c d e f g h "Module ngx_http_log_module". nginx documentation. Retrieved November 2026.
  3. ^ a b c d e f g h i j k l m n o p q r s t u v w x y z 26 27 28 29 30 31 32 33 "Overview of OpenAI crawlers". OpenAI. Retrieved November 2026.
  4. ^ a b c d e f g h i j k l m n o "Does Anthropic crawl data from the web, and how can site owners block the crawler?". Claude Help Center. Retrieved November 2026.
  5. ^ a b c d e f g h i j k l m n o p q "Perplexity crawlers". Perplexity. Retrieved November 2026.
  6. ^ a b c d e f g h i "Verify requests from Google crawlers and fetchers". Google Search Central. Retrieved November 2026.
  7. ^ a b c d e f "Verifying Bingbot". Bing Webmaster Help. Retrieved November 2026.
  8. ^ a b c d e f g h i "CCBot". Common Crawl Foundation. Retrieved November 2026.