You can see which crawlers visit your site by reading the User-Agent field in your access log, then checking each hit against the crawler operator's published IP ranges or reverse DNS. Matching the User-Agent alone is not enough: anyone can copy a bot name into a script. A server log is a plain text record your web server writes for every request; the access log is the file that lists them.
Below is the comparison this article is built on. Two approaches, side by side: raw log filtering on the command line, and a log analyzer tool. I'll show where each one fits.
At a Glance
| Check | Command line (grep/awk) | Log analyzer tool |
|---|---|---|
| Setup time | Minutes if you have shell access | Often hours to install, configure and parse |
| Cost | Free, uses tools already on most servers | Free tiers exist; paid plans vary |
| Good for | One-off checks, spot audits, quick counts | Recurring reports, dashboards, team sharing |
| User-Agent filtering | Direct: grep on the UA string | Usually via bot lists or custom rules |
| Identity verification | Manual: reverse DNS or IP range lookup | Varies by tool; check if it verifies at all |
| False positives from spoofed bots | High unless you verify | Depends on the tool's verification step |
| Learning curve | Basic regex and log format knowledge | Interface learning, plus parsing rules |
The table is a starting point, not a verdict. I would run the command-line check first, because it tells you what the tool will later summarize. If the raw log is clean, the dashboard is reliable. If the raw log is noisy, the dashboard hides the noise.
What the access log contains and how to filter it
A typical access log line follows the Common Log Format defined by the W3C and used by Apache and Nginx. Each line has the client IP, a timestamp, the request line, the status code, the response size and the User-Agent string. The User-Agent is a header the client sends to identify itself; bots usually include a token like GPTBot or ClaudeBot.
Here is a sample line, with fields labelled in plain terms:
203.0.113.10 - - [07/Oct/2026:10:14:02 +0000] "GET /blog/post HTTP/1.1" 200 5120 "-" "Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"
The IP is 203.0.113.10 (an example address from the documentation range). The status is 200, so the page was served. The User-Agent claims to be GPTBot. That claim is the thing you have to check.
Not every server writes the same format. Nginx lets you define a custom log_format; many setups add the referrer or the response time. If your log lacks the User-Agent field, add it before you start. The Nginx documentation shows the default combined format and how to change it.
The first useful command counts hits per bot name. On a standard combined log, the User-Agent is the last quoted field. A quick grep gives you a rough count:
grep -i "GPTBot" /var/log/nginx/access.log | wc -l
Swap GPTBot for ClaudeBot, PerplexityBot, Googlebot or bingbot to check other crawlers. The -i flag makes the match case-insensitive, which matters because UA strings vary in case.
To see which paths the bot requested, add an awk field extraction. The request line is usually field 7 in the combined format:
grep -i "GPTBot" /var/log/nginx/access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20
That shows the top 20 URLs hit by that bot, with counts. If a bot keeps hitting the same page, that is a signal. If it hits many pages once, that is a normal crawl. Neither tells you yet whether the bot is real.
Verify crawler identity beyond the user agent
User-Agent strings are easy to fake. A script can send any string it likes, so a hit labelled GPTBot may come from a scraper on a home connection. Verification means checking the source IP against the operator's published ranges or reverse DNS.
OpenAI publishes the IP ranges used by GPTBot on its own documentation page. Anthropic publishes ClaudeBot ranges similarly. Google documents how to verify Googlebot via reverse DNS: a reverse lookup on the IP should resolve to a hostname in the googlebot.com or google.com domain, and a forward lookup on that hostname should return the same IP. That two-way check is the standard method.
For a quick manual check, run a reverse DNS lookup on the IP from the log line:
dig -x 203.0.113.10 +short
If the result is empty or points to a consumer ISP, the claimed bot name is suspect. If it points to the operator's domain, confirm with a forward lookup. Command-line tools and analyzer plugins can automate this, but the logic is the same.
Spot crawl patterns with status codes and frequency
Status codes tell you how the bot experienced your site. A 200 means the page was served. A 301 or 302 means a redirect. A 403 means blocked. A 429 means rate-limited. A 5xx means your server failed.
Counting status codes per bot shows where crawl effort is wasted. If half of a bot's hits are 404, the bot is following stale links. If many are 403, a firewall rule is blocking a crawler you may want to allow.
grep -i "ClaudeBot" /var/log/nginx/access.log | awk '{print $9}' | sort | uniq -c | sort -rn
Frequency matters too. A steady trickle of hits across many URLs looks like a normal crawl. A burst of hundreds of hits in a minute from one IP looks like a scraper or a misconfigured bot. Put simply, shape matters as much as the total.
Compare log analyzer tools on verification
Log analyzers parse the file and produce charts. The useful ones also group by bot and flag unverified hits. Not all do. When you compare tools, ask three questions: does it recognize AI crawler user agents, does it check IP ownership, and can you export the result?
Some tools rely only on the User-Agent string and label every GPTBot hit as genuine. That is a false positive risk. Others let you upload a list of known IP ranges and cross-check. The difference matters if you plan to base a robots.txt or firewall decision on the report.
For a first pass, the command-line method in sections 2 and 3 gives you the same signal without a vendor decision. Use a tool later if you need recurring reports for a team. There is no public benchmark that ranks these tools on AI-bot verification accuracy, so test with a sample log before you commit.
Turn the log data into an access report
A useful report answers four questions: which crawlers came, were they verified, what did they request, and what did they get. Keep it to one page. A small table works better than a long narrative.
| Column | Example value | Why it matters |
|---|---|---|
| Crawler name | GPTBot | Identifies the operator |
| Verified? | Yes / No / Unknown | Separates real bots from spoofed ones |
| Hits (period) | 412 | Shows crawl volume |
| Top status | 200 (78%) | Shows crawl health |
| Top path | /guides/logs | Shows what the bot values |
Fill it from the commands above. If a crawler is unverified, mark it Unknown rather than No, because your check may be incomplete. Then decide what to do.
Use the findings for robots.txt and crawl budget
Robots.txt is a file at the site root that tells crawlers which paths they may request, per the Robots Exclusion Protocol (RFC 9309). It is a request, not a block. A crawler that ignores it will still appear in your logs.
Crawl budget is the amount of time a search engine is willing to spend on your site. If a verified bot is hitting low-value URLs, tighten internal links or use robots.txt to point it away. If an unverified bot is hammering the site, a firewall rule or rate limit is the right tool, because robots.txt only speaks to compliant crawlers.
For AI crawlers, the decision is policy, not just technology. Blocking GPTBot in robots.txt may reduce AI training or retrieval access; allowing it may increase citation chances. There is no public figure for the citation effect, so treat any claim with care.
If the bot is verified and requests pages you want indexed, leave it alone and watch its status codes. If it is verified but wasteful, adjust robots.txt or internal links. If it is unverified and aggressive, rate-limit or block at the firewall. If the log lacks a User-Agent field, fix the log format before drawing conclusions.
Run the check monthly. Crawler behavior changes, and a single snapshot misses drift. Keep the one-page report so you can compare periods.
Key Facts at a Glance
- The access log records each request; the User-Agent field names the claimed crawler.
- User-Agent matching alone is not verification; check IP ranges or reverse DNS.
- Google documents a two-way reverse DNS check for Googlebot; OpenAI and Anthropic publish bot IP ranges.
- Status codes (200, 301, 403, 429, 5xx) show crawl health and where effort is wasted.
- Robots.txt follows RFC 9309 and is a request, not a block.
- Command-line checks are fast and free; log analyzers help with recurring team reports.
FAQ
How do I identify AI crawlers in my server logs?
Filter the access log by User-Agent tokens such as GPTBot, ClaudeBot or PerplexityBot. Then verify the source IP against the operator's published ranges or reverse DNS before treating the hit as genuine.
How can I verify a crawler is legitimate and not spoofed?
Run a reverse DNS lookup on the IP and check it resolves to the operator's domain. Then run a forward lookup on that hostname to confirm it returns the same IP. Google documents this method for Googlebot; other operators publish IP ranges.
What do GPTBot, ClaudeBot and PerplexityBot look like in logs?
They appear as User-Agent strings containing those names, often with a URL to the operator's bot documentation. The exact string varies by version, so match on the name token rather than the full string.
Should I block AI crawlers in robots.txt or via a firewall?
Use robots.txt for compliant crawlers you want to exclude politely; it follows RFC 9309 but is only a request. Use a firewall or rate limit for unverified or aggressive traffic that ignores robots.txt.
What tools can analyze access logs for AI crawler hits?
Command-line tools like grep, awk, sort and uniq work without installation. Log analyzers add dashboards and recurring reports; check whether each tool verifies IP ownership before relying on its bot labels.
Data sources: the standards and technical parameters referenced in this article are based on the corresponding national/industry standards and the manufacturer's factory QC records; the current in-force version prevails.
