Field notes, logs
People, bots, AI agents and scrapers in your logs
A large share of the requests your server answers are not people. Some say so, some pretend otherwise. Here is how to tell them apart, signal by signal, and what still slips through.
. 5 min read.
Look at a day of your access log and count the requests that came from a person reading a page. On many small sites it is well under half. The rest is search engines, AI companies collecting text, uptime checks, link previews, scanners looking for a forgotten .env, and programs calling your API.
None of that is bad on its own. But if you count it as people, every number on top of it is wrong. This note shows how StatsRaven tells them apart, in the order it checks, and where each signal stops being trustworthy.
The short answer
Most automated traffic announces itself, and a short list of rules sorts it well: known bot names, scanner paths, API routes and programs that are not browsers. The hard part is the rest: scrapers that copy a real browser and come from home connections. No rule on a single request can catch those. Comparing the pages your server answered with the page views real browsers reported can, and that is the check that matters most.
Who is actually requesting your pages?
StatsRaven puts every request into one of four classes: people, bots, API calls and unclassified. Every screen offers the same choice, so you can look at Live, Tail or Overview with only people, only bots, or everything.
Bots are then split by kind and by company. AI agents come first, because they matter most right now: OpenAI, Anthropic, Perplexity, Google's AI crawlers, Meta, Apple, Amazon, ByteDance, Common Crawl, Cohere, Mistral, DeepSeek and others each get their own row. The rest fall into search engines, SEO tools, link previews, monitoring, performance tests, scanners, automated browsers, and scripts and libraries.
How do you tell a bot from a person in server logs?
By checking signals in order, from the most certain to the least. This is the order StatsRaven uses for every request:
- No user agent at all. A scanner if it asked for a scanner path, an API call on an API route, otherwise a program, since every browser sends one.
- A known bot. One of about a thousand names from open bot lists, such as GPTBot, ClaudeBot, PerplexityBot or Googlebot, checked against the addresses its operator publishes.
- Names itself a bot. Crawlers no list knows yet, by the words they use.
- Asked for a path scanners use.
/.git,/.env,xmlrpc.php,phpmyadmin,wp-configand their relatives. - Called an API route.
/api,/v1,/graphql,/webhooks, anapi.host. - A program, not a browser. curl, python-requests, axios, okhttp, or anything that does not start like a browser does.
- From a data center, without a language. A browser-looking request from a hosting network that sent no language header, where the log keeps that header.
- Otherwise, a person. Until proven otherwise.
The order matters. A crawler that names itself is a bot even if it looks like a browser. A request for /.env is a scanner whatever it claims to be.
How do you find AI crawlers like GPTBot and ClaudeBot?
Mostly, they tell you. The large AI companies publish their crawler names and put them in the user agent, partly so site owners can block them in robots.txt. OpenAI uses several (GPTBot, OAI-SearchBot, ChatGPT-User), as does Anthropic (ClaudeBot, Claude-User, Claude-SearchBot), Google (Google-Extended, GoogleOther) and Meta (meta-externalagent, meta-externalfetcher).
StatsRaven checks these AI names before it checks search engines, because some AI crawlers belong to search companies. The Bots view in Overview then has a table of AI agents with the company behind each, so "how much of my traffic is AI companies reading my docs?" has a direct answer. You can also just ask it in chat.
What about scanners and probes?
Every public server gets probed. Requests for /.git/config, /.env, /wp-login.php on a site that has never run WordPress, /phpmyadmin, /actuator. They usually get a 404 and are forgotten.
StatsRaven treats a request for one of those well-known paths as a bot whatever its user agent says. On a failed answer (400, 403, 404, 405 or 410), any hidden file, any .php, .sql or .bak ending, and admin, config or backup paths count too. Your own missing page is different: a 404 on /old-pricing-page stays a person who followed an old link.
In Patterns, scanner requests are grouped under security, separately from ordinary missing pages, so they do not hide among them.
Can a scraper pretend to be a browser?
Yes, and this is where single-request rules stop working. A scraper can send a perfect browser user agent, a language header, and come from a home connection rented through a proxy service. Each request on its own looks exactly like a person.
What it usually does not do is run your page's scripts. So StatsRaven compares two things: the pages the server answered, and the page views real browsers reported through the snippet. A browser-looking request for a page, with no page view from the same browser within two minutes, is marked as one that never ran the snippet. In Live and Tail, that mark appears 20 seconds after the request, and late answers still clear it.
Server answered
- /pricing/, Safari on iPhone
- /docs/, Chrome on Mac
- /blog/, Firefox on Linux
- /pricing/, Chrome on Windows
Browser reported
- /pricing/, Safari on iPhone
- /docs/, Chrome on Mac
- /blog/, Firefox on Linux
- Nothing
The per-request match needs Cloudflare Workers logs today, because it uses the exact page and browser of each request. With a plain nginx log, StatsRaven still compares the counts per project, which shows the size of the gap if not each request in it.
What is the strongest case against all of this?
That it is guesswork, and some of it is. A privacy-minded person who blocks scripts looks exactly like a scraper to the last check. A new crawler with an unknown name is called a person until someone adds it. Rules written by hand always run a little behind.
All of that is true, and it is why StatsRaven keeps a reason with every classification instead of a silent label, and why its visitor numbers come only from the snippet with bots left out. The checks make the bot share visible. They do not pretend to be perfect.
What StatsRaven does with this
Every request gets a class, a kind, a company where there is one, and a reason. People, bots, API and unclassified are one switch away on every screen. The AI agents table shows who is reading your site for which company. Scanner paths are grouped under security in Patterns. The browser check catches the scrapers that look like people.
And you ask it in plain words: "Which AI crawlers visited the docs this week?", "How much of yesterday's traffic was bots?", "Who is hammering my API?" In StatsRaven's chat, or from Claude over MCP. It runs on your server, free for one project. See pricing, or read how it works with nginx logs alone.
Most of your visitors are not people. Now you can see which ones.
For which bots come and what they take, see Which bots read your site, and which ones send anyone back and the Bots docs.
Questions
How do I find AI crawlers like GPTBot and ClaudeBot in my logs?
Most AI crawlers name themselves in the user agent: GPTBot and OAI-SearchBot from OpenAI, ClaudeBot from Anthropic, PerplexityBot, Google-Extended, meta-externalagent and others. StatsRaven's Bots page lists them by company and by what they do: training, AI search, or fetching a page for someone asking.
Can a scraper pretend to be a browser?
Yes. The user agent is just text the client sends. Rules on single requests cannot catch a scraper that copies a real browser and comes from a home connection. Comparing what the server answered with what browsers reported is what catches them.
What is a probe or scanner request?
A request for a path that attackers check on every site, such as /.env, /.git, /wp-config or phpMyAdmin. StatsRaven files these under security and counts them as bots whatever their user agent claims.
Do I need Cloudflare to detect bots?
No. User agents, known bot names, scanner paths, program clients and the check of a bot's address against what its operator publishes all work from a plain nginx log, with the network looked up inside StatsRaven.
Are bots counted in my visitor numbers?
No. Visitors and visits in StatsRaven come from the browser snippet with bots left out. Bots get their own view, with every crawler by kind and company.