You want to know which crawlers actually visit your site. Here's the direct answer: open your web server's access log, filter by user agent (the text string a bot sends to identify itself), then check the claimed identity against the bot operator's published IP ranges or reverse DNS. Two approaches sit side by side. The quick user-agent filter tells you who claims to be there. The slower verified-IP check tells you who really is.

For AI citation work, that difference matters. A user-agent filter can be fooled in seconds. A verified IP check can't be faked without controlling the operator's network. Start with the quick filter to get the shape of traffic, then run verification on the hits that matter.

1. An access log records every request, and the user agent is the only field a bot controls

An access log is a file your web server writes for every request it handles. Each line usually follows the Common Log Format or the Combined Log Format, both documented in the Apache HTTP Server documentation. A typical Combined Log Format line looks like this:

203.0.113.7 - - [14/May/2026:09:12:44 +0000] "GET /pricing HTTP/1.1" 200 5120 "-" "GPTBot/1.0"

The fields, in order, are: client IP, identity, user, timestamp, request line, status code, bytes sent, referrer, and user agent. That last field is the only part a bot controls freely. Everything before it is written by your server, which is why IP and status code carry more weight than the user-agent string.

Log locations depend on your stack. On Apache, the default is often /var/log/apache2/access.log. On Nginx, check /var/log/nginx/access.log. If you sit behind a CDN or reverse proxy, the real client IP may be in a header like X-Forwarded-For rather than the first field. The IETF RFC 7239 defines the Forwarded header, and most CDNs document their own equivalent.

The fast approach is to grep the log for known bot strings. OpenAI publishes its crawler user agents in its documentation, including GPTBot for training and OAI-SearchBot for search. Anthropic documents ClaudeBot and Claude-SearchBot. Perplexity documents PerplexityBot. Google documents Googlebot and Google-Extended.

A basic filter looks like this:

grep -iE "GPTBot|ClaudeBot|PerplexityBot|Googlebot" access.log | wc -l

That gives you a count. To see which URLs each bot hit, add the request path:

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

This is useful, but it has a known weakness. Anyone can send a request with the string "GPTBot" in the user agent. A user-agent filter tells you who claims to be a crawler. It doesn't prove the claim.

2. A verified check compares the client IP against the operator's published ranges

The verified approach compares the client IP against the range the operator publishes. OpenAI publishes its IP ranges at openai.com/gptbot.json and similar endpoints. Google publishes its ranges in googlebot.json under developers.google.com/search/apis/ipranges. Bing documents its ranges in the Bing Webmaster Guidelines.

A manual check runs in two steps. First, reverse DNS lookup on the IP:

dig -x 203.0.113.7 +short

Second, forward lookup on the resulting hostname, which must resolve back to the same IP. If the forward lookup returns a different address, the reverse record is spoofed. This two-step pattern is the standard verification method Google documents for Googlebot.

For a bulk check, pull the IPs from the log, then match them against the published CIDR blocks. A short script or a log analyzer with geo and ASN lookup does this in seconds. The key point: a hit that passes both reverse and forward DNS is verified. A hit that fails is unverified, whatever its user agent says.

3. The quick filter is cheap and noisy; the verified check is slower and trustworthy

DimensionQuick user-agent filterVerified IP / DNS check
Time to first resultUnder a minute with grepMinutes to hours, depending on volume
What it provesWho claims to be thereWho is actually there
WeaknessTrivially spoofedNeeds current IP range data
Good forGetting the traffic shapeDeciding whether to block or allow
Skill neededBasic command lineDNS tools or a log analyzer
Failure modeFalse positives from fakesStale ranges cause false negatives

The table shows the trade-off clearly. The quick filter is cheap and fast but noisy. The verified check is slower but trustworthy. Most teams should run the quick filter weekly and the verified check monthly, or before any blocking decision.

4. Spoofed crawlers show up as odd IP counts, near-miss user agents and telling status codes

A spoofed crawler is a request that claims a bot identity but comes from an IP the operator doesn't own. The giveaway is usually in the numbers. Real crawlers hit many URLs from a small set of IPs, with consistent reverse DNS. Fakes often come from one IP, hit a narrow set of pages, and show no reverse DNS record.

To catch them, sort the log by IP and count hits per IP for each claimed bot. If a single IP claims to be GPTBot and sends 5,000 requests in an hour, that's worth a look. Cross-check that IP against the published range. If it's outside the range, treat the hit as unverified.

Another signal is the user-agent string itself. Real bots use stable, documented strings. Fakes often use near-misses like "GPTBot/1.0" with an odd suffix, or lowercase variants. A regex that matches the exact documented string catches more fakes than a loose match.

Status codes tell you how your server responded. A 200 means the page was served. A 403 means blocked, often by a WAF rule. A 404 means the crawler asked for a URL that doesn't exist. A 429 means rate-limited.

For AI crawler analysis, the code matters as much as the count. A bot that gets 403 on every request isn't reading your content, so it can't cite it. A bot that gets 200 but only on your homepage isn't crawling deep. The pattern of codes across URLs is the real story.

Frequency matters too. Compare hits per day over a few weeks. A sudden jump from 50 to 5,000 requests from one claimed bot is either a new crawl schedule or a spoof. Verification tells you which.

5. Pick a log analyzer that separates verified from unverified hits, then act on the result

A log analyzer is a tool that parses log files and turns them into counts, charts and filters. The selection criteria are simple: does it support your log format, does it let you filter by user agent and IP, and does it update its bot IP ranges.

Options range from command-line tools like GoAccess and AWStats to hosted services. GoAccess is open source and runs on the server, which keeps log data in-house. Hosted analyzers are easier to set up but require sending logs off-site. For a small site, grep plus a spreadsheet covers most needs. For a site with millions of hits, a dedicated tool pays for itself.

Whatever you pick, check one thing: does it distinguish verified from unverified hits? A tool that only counts user agents will overstate real bot traffic.

Once you have verified hits, the decision splits three ways. Verified AI crawlers you want to allow: confirm robots.txt permits them and check the crawl rate. Verified crawlers you want to block: use robots.txt for polite blocking, and a WAF rule for hard blocking. Unverified hits claiming a bot identity: block at the WAF, because they aren't the bot they claim to be.

Robots.txt is a request, not enforcement. The IETF RFC 9309 defines the Robots Exclusion Protocol, and it relies on the crawler choosing to comply. A WAF rule blocks at the network level, which works regardless of compliance. Use robots.txt for known, compliant bots and the WAF for everything else.

Set a monthly review. Crawler behavior changes, IP ranges update, and a rule that made sense in January may be wrong by June. The review is where the log data turns into a decision.

Key Facts at a Glance

  • Access logs follow Common or Combined Log Format; the user agent is the last field and the only one a bot controls.
  • Quick filter: grep by user agent gives a count in seconds but can't prove identity.
  • Verified check: reverse DNS plus forward DNS, or match against the operator's published IP ranges.
  • Status codes matter: 403 means blocked, 200 means served, 429 means rate-limited.
  • Block verified bots with robots.txt (RFC 9309); block unverified fakes at the WAF.
  • Review monthly, because IP ranges and crawler behavior change.

FAQ

How do I find AI crawler hits in my server logs?

Search the access log for known user-agent strings such as GPTBot, ClaudeBot or PerplexityBot. A command like grep -i "GPTBot" access.log gives you the hits. Then verify the IPs against the operator's published ranges.

How can I verify a crawler is really who it claims to be?

Run a reverse DNS lookup on the client IP, then a forward lookup on the resulting hostname. If the forward lookup returns the same IP, the identity is consistent. Also match the IP against the operator's published range, such as OpenAI's or Google's JSON range files.

What is the difference between a user agent and a verified crawler?

A user agent is a text string the client sends. A verified crawler is one whose IP matches the operator's published range and passes DNS checks. The user agent is a claim; verification is proof.

Which log analyzer tools detect AI crawlers?

GoAccess, AWStats and hosted log services can all filter by user agent. Check whether the tool also checks IP ranges, because user-agent-only tools overstate real bot traffic.

Should I block AI crawlers in robots.txt or my WAF?

Use robots.txt for known, compliant bots you want to slow down or exclude politely. Use a WAF rule for unverified hits or hard blocks, because robots.txt depends on the crawler choosing to comply (RFC 9309).