AI crawlers are inflating your server stats (and why your analytics doesn't see them)
Disclosure: I'm part of the team behind FastAnalytics, a cookieless analytics tool. Everything below works with any analytics tool and a plain server log. If your hosting dashboard says traffic went up this year but yo
Disclosure: I'm part of the team behind FastAnalytics, a cookieless analytics tool. Everything below works with any analytics tool and a plain server log.
If your hosting dashboard says traffic went up this year but your analytics stayed flat, you're not imagining it. A growing share of requests to websites now comes from crawlers that collect pages for AI models and AI search. They show up in one set of numbers and are invisible in the other.
Both numbers can be right. Here's why, how to measure it on your own server, and how to decide what to do about it.
Three kinds of AI bots
It helps to split them by why they visit, because you may want to treat them differently:
| Type | What it does | Examples (user agent) |
|---|---|---|
| Training crawlers | Collect pages to train models |
GPTBot, ClaudeBot, CCBot, Bytespider
|
| AI search crawlers | Index pages so an assistant can cite them in answers |
OAI-SearchBot, PerplexityBot
|
| User-triggered fetchers | Fetch a page because a person asked the assistant about it | ChatGPT-User |
Not every name is a crawler. Some are only robots.txt tokens: Google-Extended, for example, lets you opt out of Google using your pages for its AI models without affecting Google Search. You'll never see it in your logs.
Vendors add and rename bots regularly. Treat any list (including this one) as a starting point and check each vendor's documentation.
Why your logs and your analytics disagree
- Server logs, hosting dashboards and many CDN stats count every HTTP request. Crawlers included.
- Script-based analytics (GA4, Plausible, Fathom, FastAnalyticsโฆ) only count a visit when the browser runs the tracking script.
Most crawlers download the HTML and leave. They don't execute JavaScript, so the script never runs and the visit never reaches your analytics.
So when the two disagree, it's usually not a bug. Your logs are measuring requests, your analytics is measuring people with a browser.
Measure it on your own server
If you have access to an Nginx or Apache access log, this one-liner counts requests from common AI user agents:
grep -Eio 'GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|PerplexityBot|CCBot|Bytespider|Amazonbot' access.log \
| sort | uniq -c | sort -rn
And this compares them with your total requests:
total=$(wc -l < access.log)
ai=$(grep -Eic 'GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|PerplexityBot|CCBot|Bytespider|Amazonbot' access.log)
echo "AI bot requests: $ai of $total"
Run it on a week of logs and you'll know whether AI crawlers are a rounding error or a big part of your server load.
User agents can be faked. For a stricter check, some vendors publish the IP ranges their crawlers use, so you can verify that a "GPTBot" request really comes from OpenAI.
Control them with robots.txt
Each crawler can be allowed or blocked separately. For example, to block training crawlers but keep AI search:
# Block model training
User-agent: GPTBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Google-Extended
Disallow: /
# Allow AI search (can send visitors who click citations)
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
Two honest caveats:
- robots.txt is voluntary. Reputable crawlers follow it; others may not. For stronger control, many CDNs and firewalls can block known AI crawlers by user agent or IP.
- It's not retroactive. Blocking today doesn't remove what was already collected.
Block or allow? It's a business decision
- Blocking protects your content and saves server resources. It makes sense for paywalled content, original research or sites where bots cost you real money.
- Allowing AI search crawlers can bring visitors when an assistant cites your page. Those visits are real people with browsers, so they do show up in your analytics, usually as referrals from the assistant's domain.
A middle ground many sites choose: block training, allow search, and watch what happens to referral traffic for a couple of months.
What to look at in your analytics
-
Referrals from AI assistants. Check your sources for the assistants' domains. Some assistants also add a
utm_sourceto the links they show, which makes them easier to spot. - Sudden spikes from one place. A burst of pageviews from a single network in a few seconds is often an automated client that does run JavaScript. Good tools filter known bots automatically and flag unusual bursts.
- Logs vs analytics over time. If the gap keeps growing while real visits are stable, it's bots, not your audience.
We wrote a longer reference with the crawler list and robots.txt examples here: AI crawlers and your traffic statistics.
Have you blocked AI crawlers on your sites, or decided to let them in? I'm curious which way people are going.
Cover photo by Emilipothรจse on Unsplash.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.