StatsRaven

DocsAsk

Bots

Every web request is classified once, as it arrives: a person, a bot, an API call, or unclassified. A bot also gets its name, what it does, who runs it and whether its address proves it. The Bots page, Overview, Live, Tail, Networks, alerts, chat and MCP all read that one answer.

On this page
  1. How a request is classified
  2. What kind of bot
  3. Verified, spoofed or not checked
  4. Behind a CDN
  5. Where you see it
  6. Crawl-to-refer
  7. Data sources
  8. Limits

How a request is classified#

StatsRaven reads what any web server logs: the user agent, the path, the answer and the address with its network. Nothing depends on a CDN or a script. In this order:

  1. A known bot. The user agent names a bot from the bot list, such as GPTBot or Googlebot. It is a bot, with that bot's category and operator, and its address is checked (see below).
  2. A bot no list names. The user agent says crawler, spider, bot or scan, or it is on the wider list of crawler names.
  3. A scanner. The path is one scanners try on every site, such as /.env or /.git/config, or /wp-login.php answered with a 404.
  4. An API call. The path is an API route, such as /api/, /v1/, /graphql or /mcp, or the host starts with api.. Scripts calling an API count here, not as bots.
  5. A program. The user agent is not a browser's, such as curl or python-requests, or there is none.
  6. A browser from a data center that sends no Accept-Language, where the log holds that header.
  7. A person: everything else that looks like a browser. The browser snippet confirms it, and Tail shows which page requests never ran it.

A request is unclassified only when its source logs no headers at all, such as Workers Logpush without them. Tail and Live show the reason for each request in a few words, such as "address published by its operator".

What kind of bot#

Search engines
Googlebot, bingbot, Applebot, Baiduspider, YandexBot and the like.
AI training crawlers
Bots that collect pages to train models: GPTBot, ClaudeBot, CCBot, Bytespider, meta-externalagent.
AI search
Bots that index pages for AI answers: OAI-SearchBot, Claude-SearchBot, PerplexityBot.
AI assistants
Fetches for a person asking right now: ChatGPT-User, Claude-User, Perplexity-User. A visit from one is a page read in someone's answer.
AI agents
Agents that browse and act on someone's behalf.
SEO tools, link previews, feed readers, monitoring, archivers, research, advertising, webhooks
As named. Link previews are the cards chat apps and social networks draw for a link.
Scanners, automated browsers, scripts and libraries
Programs looking for weak spots, headless browsers and plain HTTP clients.
Spoofed bots
Requests that use a known bot's name from an address its operator does not use.
Other bots
Bots that name themselves but say nothing about what they do.

In queries these are the bot_cat values: search, ai_crawler, ai_search, ai_assistant, ai_agent, seo, preview, feed, monitor, archiver, academic, advertising, scanner, automated, script, webhook, spoofed and other.

Verified, spoofed or not checked#

A user agent is text the sender writes, and anyone can write Googlebot's. Many operators publish the addresses their bots use so sites can check them: Google, Microsoft, OpenAI, Anthropic, Perplexity, Apple, Common Crawl, DuckDuckGo, Meta, Ahrefs and about 75 more. StatsRaven checks each request from a known bot against them.

Verified
The address is one the operator publishes for that bot, or, with reverse DNS checks on, the address's name belongs to the operator and resolves back to the address.
Spoofed
The operator publishes its addresses and this one is not among them. These requests leave their bot's category and count under Spoofed bots, with the network they came from.
Can't be checked
The operator publishes no addresses or names, as for Bytespider. The bot counts by its name.
Not checked
It could be checked but was not: the log holds no address, the address is a CDN's, the data set is off, or a reverse DNS answer is still on its way.

Behind a CDN#

When a site sits behind Cloudflare or another CDN and the web server logs the CDN's address, every request seems to come from the CDN. StatsRaven sees that, never calls those bots spoofed, marks them not checked, and the Bots page says how many requests came that way. To check them, have the web server log the visitor's own address, which the CDN sends in a header. With Cloudflare that is CF-Connecting-IP. Trust it only from the CDN's own addresses.

/etc/nginx/conf.d/real-ip.conf
# Cloudflare's addresses, from https://www.cloudflare.com/ips/ (one line per range)
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
# ...the rest of the list...
real_ip_header CF-Connecting-IP;

nginx then writes the visitor's address as $remote_addr in the access log. It needs the realip module, which most packages include.

Cloudflare Workers need nothing: the tail Worker sends the visitor's address already.

Where you see it#

  • Bots in the menu: every bot of the period by name, with its category, operator, requests, bytes sent, pages, answers, check and robots.txt reads. Tabs for AI, search, SEO, previews and feeds, monitoring, scanners and scripts, other, spoofed, and crawlers no list knows. A bot opens beside the list with its pages, errors and networks. Also bots first seen this week, the pages bots read beside how many people read them, the errors bots got, and crawl-to-refer.
  • Overview: the Bots view sums up the period and opens the Bots page.
  • Live and Tail: each bot request shows its category, operator and check.
  • Networks: traffic of each network by kind, so a hosting company that sends only bots stands out.
  • Alerts, sheets and queries: filter and group by bot, bot_cat, operator and verified.
  • Chat and MCP: bot_report gives the same numbers as the Bots page.

Crawl-to-refer#

For each AI company, the pages its bots read beside the visits its assistant sent back in the same period. A visit counts when its referrer is the assistant's site, such as chatgpt.com, perplexity.ai or claude.ai, or when the address carries the utm_source an assistant adds to its links, as ChatGPT does. Only pages count on both sides, not images or scripts. Apps that send neither a referrer nor a utm_source are not counted, so the real ratio is somewhat better than shown.

From a query string StatsRaven keeps utm_source only, which names where a visit came from. The rest is still dropped, since it can hold sign-in links and other secrets.

Data sources#

Settings, Data sources lists every list StatsRaven can refresh. Each is Auto (updates every day, week or month), Manual (Update now) or Off, shows the copy in use and how the last update went, and can go back to the copy inside the binary. Nothing downloads until an admin says so; Get started asks once.

Data setSource and licenseOff means
IP to ASNiptoasn.com, Public Domain, or a provider you chooseRequests get no network
Bad ASN listbrianhama/bad-asn-list, MITData centers are known by name only
Well-known botsarcjet/well-known-bots, MITBots have no names, operators or checks
AI robotsai-robots-txt/ai.robots.txt, MITAI is not split into training, search and assistants
Crawler user agentsmonperrus/crawler-user-agents, MITSome rare crawlers count as people or programs
Bot operator addressesPublished by each operator to check its botsBots cannot be checked by address
Reverse DNS checksYour server's resolver, off by defaultBots known only by host name are not checked

The bot list inside the binary knew 1,006 bots on 2026-11-28, 252 of them AI, and the published addresses of 87. Cloudflare's bot directory is not used: its data is licensed for non-commercial use only.

Limits#

  • The Bots page reads the server requests kept in memory, the last 120 days. Requests stored before version 0.4.0 have no category of their own; they get one from the bot's name, and their checks show as not checked.
  • Robots.txt: the page shows which bots read it and when. Whether a bot then kept to its rules needs your robots.txt rules, which a log does not hold.
  • Bots are counted and shown, never blocked. Blocking stays in your web server, your CDN or robots.txt.