
Essay Bot Detection
Naming the AI Model When Your Analytics Dashboard Only Shows an Unknown Bot
Server logs and IP checks reveal which AI crawler is visiting.
To detect AI agents on a website, inspect server logs, match known crawler user-agent tokens, and verify the requesting IP addresses against the operator’s published ranges. This names the crawler behind traffic that session analytics cannot explain. Its business meaning then depends on whether it collects training data, retrieves content for AI answers, or fetches a page for a person.
Why analytics dashboards cannot show you which AI model visited
Session analytics depends on an event that most AI crawlers never produce. Analytics platforms built to measure people fire JavaScript when a page loads, while AI crawlers request raw HTML without running that JavaScript. No tracking event fires, so no session appears.
GA4 adds a second layer of exclusion by automatically filtering known bots, with no option to disable that filter. Even a known crawler that generated a tracking signal would be suppressed before reaching the report. A server can handle a lot of AI crawler traffic while its human-session dashboard shows none of those requests. An “unknown bot” label therefore cannot be resolved simply by looking more closely at the same session reports.
The three distinct classes of AI bot traffic and why they require different treatment
GPTBot, ClaudeBot, and Meta-ExternalAgent identify training crawlers, which collect content for model training. Treating these requests as prospective visits would confuse the operator’s data collection with a person’s interest in the site.
OAI-SearchBot, Claude-SearchBot, and PerplexityBot identify retrieval crawlers, which build the live index AI assistants draw on when constructing answers. Their activity indicates citation potential. That distinction changes how a crawl should be interpreted, because retrieval can support answers that send people back to the source. The product token therefore provides both a detection handle and an initial explanation of purpose.
ChatGPT-User, Claude-User, and Perplexity-User identify user-triggered fetches. These occur when someone inside an assistant opens a link or the assistant fetches a page on that person’s behalf. They are the closest analog to a human visit. Unlike a training crawl, such a request reflects live human interest and can correlate with referral sessions, although the fetch and the subsequent website visit remain separate events.
What server logs contain that analytics tools do not
Server access logs record HTTP requests whether or not JavaScript runs. A standard combined-format record includes the client IP address, timestamp, requested URL, HTTP status code, bytes transferred, and full user-agent string. Each field answers a different identification question. The user agent supplies the claimed crawler name, the IP supports verification, and the URL shows which content was requested. Status codes and transferred bytes show how much content was sent and how delivery went, which the crawler name alone cannot show.
The file location depends on the hosting environment. Nginx defaults to /var/log/nginx/access.log, while Apache uses /var/log/apache2/access.log on Debian/Ubuntu or /var/log/httpd/access_log on RHEL/CentOS. Managed hosts usually make the logs available to download through a control panel. Cloudflare’s detection guide shows crawler user-agent strings as they appear in logs and explains how to detect crawlers through log analysis or its AI Crawl Control dashboard. The relevant distinction is therefore between request-level data and human-session analytics.
How can you tell which AI bots are crawling your website and what content they are reading?
Identification starts with a search for the product token within the user-agent string. Versions can change while the token remains stable. For an Nginx access log, the command grep -oiE 'GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|Meta-ExternalAgent|Googlebot|Amazonbot' /var/log/nginx/access.log | sort | uniq -c | sort -rn extracts matching tokens and ranks their counts. The case-insensitive search also accommodates capitalization such as meta-externalagent/1.1. These are counts of claimed crawler identities, pending verification.
The command grep -i 'GPTBot' /var/log/nginx/access.log | awk '{print $7}' | sort | uniq -c | sort -rn ranks requested URLs for GPTBot in a standard combined-format log. Replacing the token isolates another crawler’s requests. This shows which content is in demand in a way that a total for the whole domain cannot, though a request alone does not prove that a page appeared in an AI answer.
Delivery outcomes require a separate view of the same records. The command grep -i 'GPTBot' /var/log/nginx/access.log | awk '{print $9}' | sort | uniq -c | sort -rn counts HTTP status codes. Those codes distinguish successful delivery from blocking, rate limiting, or errors. Taking the seventh and ninth fields works for the log format shown here, and the file path must match the hosting environment.
IP verification: why user-agent matching alone is not enough to name a model with confidence
Any actor can put GPTBot into a request header, so token matching alone cannot establish that OpenAI made the request. The source IP from the matching log record must fall within the operator’s published crawler ranges before the request is attributed to that crawler.
OpenAI, Anthropic, Google, and other major operators publish crawler IP ranges. Comparing the logged address against the relevant allowlist makes this a range-membership test. Both checks must pass for confirmed attribution. Requests using a known token from outside the published ranges should be classified separately as spoofed or unverified traffic.
Meta does not publish an official crawler IP range file, so its tokens cannot be verified in the same way. That limitation must remain visible in the results. Google-Extended presents a different identification trap because it is a robots.txt control token and will not appear in access logs. More broadly, this process identifies a named crawler and its operator.
GA4 adds a second layer of exclusion by automatically filtering known bots, with no option to disable that filter.
What the crawl-to-referral ratio reveals about each named model's actual value
The crawl-to-referral ratio compares an operator’s server-log crawl volume with the referral sessions its platform sends. A high ratio shows a lot of crawling for the visits that can be seen, while a lower ratio shows more referrals for the amount of crawling. The two measurements come from different layers. Logs count machine requests, and analytics counts the people who subsequently arrive from an AI platform.
GA4 can show those human visits as referrals from domains including chatgpt.com, perplexity.ai, copilot.microsoft.com, gemini.google.com, and claude.ai. The comparison belongs at the operator or platform level, with functional classes retained in the crawl data. A referral domain does not, by itself, establish which crawler request caused a visit.
Training crawlers have effectively infinite crawl-to-referral ratios because training on a page does not itself send a user back. Retrieval crawlers offer a different prospect. Their ratios can remain high, but indexing by OAI-SearchBot or Claude-SearchBot makes content a candidate for live answers that can generate referrals. The ratio measures the traffic that comes back and can be seen, though being included in an AI system may have other benefits it does not measure. It also avoids mistaking a large crawl count for evidence of a successful acquisition channel.
Tools that automate log parsing and AI crawler identification without custom scripts
Tool selection depends first on access and technical capacity. Teams that already have logs and some ability to work with them can start with a log analysis tool. Teams that want a dashboard without working through logs by hand can look at CDN-level tools or tools built for this task. Cloudflare offers AI Crawl Control for this view at the infrastructure level, and its detection guide also explains how to track verified crawler activity through logs and a log analytics tool.
DarkVisitors builds its offering around an agent database that it keeps up to date with frequent updates. That registry helps the tool identify new crawlers as AI companies add them, and the tool uses its taxonomy to create robots.txt rules. A token search is only as current as the crawler names it recognizes, so registry coverage is a distinct selection criterion from the presentation of request counts.
xSeek, a visibility platform built to track AI search outcomes, starts at $49/month for its Essential plan, has higher tiers, and includes AI crawler analytics on all plans. Profound positions its “Agent Analytics” around which bots access content, how often they visit, and whether content is technically accessible to AI-based indexing. Both belong to the category that goes beyond raw identification to correlate crawling with citation outcomes. For a team choosing a tool, the relevant distinction is whether it needs log exploration, maintained agent classification, infrastructure-level monitoring, or a connection to AI visibility.
The separate identification problem: when the bot traffic is actually a human sent by an AI
A person clicking a citation in ChatGPT or Perplexity creates a different identification problem from the crawler that requested the page. The human visit can appear in analytics as a referral while the person remains anonymous. Server-log parsing does not close that gap. Likewise, a user-triggered fetch shows that someone inside an assistant is interested right now, but it does not name that visitor.
AI-referred visitors arrive after an assistant has presented the site as relevant to their query. That makes the referral a useful qualification signal as well as a label showing where the visitor came from. Company-level reverse-IP identification can link a visit to a firmographic record, while person-level identification looks for the person’s name and contact information.
The person-level mechanism is separate from crawler verification. Identity graphs match a first-party cookie or device identifier to a hashed email and contact record, using the same visitor-identification approach applied to other anonymous traffic. No AI-specific identity method is required for this segment. A platform can therefore handle both problems through one instrumentation layer, using log or proxy data to detect agents and an identity graph to identify people in human sessions, whatever their referral source. The distinction remains essential because confirming a bot’s operator and identifying a referred person are different technical results.
Putting it together: a repeatable workflow from log to named model to business signal
A repeatable process begins with the access log and a maintained set of crawler tokens. The multi-token search establishes candidate names and request volumes, while URL and status-code views show requested content and delivery outcomes. IP verification then gates attribution. Each candidate request is checked against its operator’s published ranges, and requests that fail the check or cannot be verified are kept separate from confirmed traffic. Only after that gate should the verified crawler be assigned to its training, retrieval, or user-triggered class.
The next step connects that classified activity to referral sessions from the corresponding AI platform. This preserves the distinction between what the server supplied and what the business received as visible visits. Person-level identification, where used, addresses the referred visitor separately.
Confirmed high-volume GPTBot activity shows that content is being used for training with no near-term referral return, while OAI-SearchBot activity shows that content may be used in live answers, with no promise of a visit. A ChatGPT-User fetch is a more immediate signal that someone is seeking the page through an assistant.
Notes
- How to detect AI crawlers
Showed how crawler user-agent strings appear in server logs and how to detect AI crawlers through log analysis or Cloudflare's AI Crawl Control dashboard.


