Skip to content

How to see which AI bots crawl your WordPress site, and why the count is a floor

Find AI crawlers in your logs, a plugin or your CDN, then read the numbers honestly: spoofed user agents, page caches and missing referrers hide traffic.

• Rankmizer team

You can see which AI bots visit your WordPress site by matching their user-agent names in your server logs, your CDN’s analytics, or a plugin that records requests. Each of those gives you a useful number. None of them gives you the whole number. A count based on user agents is a floor, not a total. Some requests never reach the place you’re counting, some visitors don’t announce themselves, and some that do are lying.

This post covers where to look, how to search, and how to read what you find without over-reading it.

Where the evidence lives

Server access logs

Every request your web server handles can be written to an access log, with the time, the URL, the status code and the user-agent string. This is the most complete record you control. Most hosts expose raw logs somewhere in the control panel, often as a daily download. Some managed WordPress hosts keep them for only a few days, so download them regularly if you want history.

Your CDN or firewall

If your site sits behind a CDN, many requests are answered at the edge and never reach your server. The CDN’s own analytics, and any bot or firewall reports it offers, may be the only place those requests show up. What’s available varies a lot by provider and plan.

A WordPress plugin

A plugin can record requests as WordPress handles them. That’s convenient, since the data sits next to your posts and you don’t have to parse files. It only sees requests that actually run WordPress’s PHP, which matters a great deal, as you’ll see below.

Your analytics tool, for the humans

Browser-based analytics tools like GA4 are poor at counting bots. Most crawlers never run the tracking script, and the tools try to filter out the ones that do. They are where you look for the other half of the story: people who clicked through from an AI answer. Those arrive as referral traffic, when a referrer is sent at all.

Searching your logs

Most access logs use the “combined” format, with the user agent as the last quoted field. If you have shell access or download the logs, a few commands go a long way.

Count requests per AI bot:

grep -oiE "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-User|Claude-SearchBot|PerplexityBot|Perplexity-User|Meta-ExternalAgent|CCBot|Applebot|Amazonbot" access.log \
  | tr '[:upper:]' '[:lower:]' | sort | uniq -c | sort -rn

See which URLs one bot asked for:

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

Check status codes, so you know whether bots got real pages or errors:

grep -i "ClaudeBot" access.log | awk '{print $9}' | sort | uniq -c

The tokens to search for come from each vendor’s documentation: OpenAI, Anthropic, Perplexity, Apple, Meta and Common Crawl. Vendors add and rename bots, so check those pages from time to time rather than trusting a list you copied a year ago.

Two names you won’t find: Google-Extended and Applebot-Extended. Google and Apple both document them as robots.txt control tokens that never appear as a user agent. A zero next to them in any report means “nothing to see,” not “nothing happened.”

Why the count is a floor

1. User agents are self-declared

A user agent is a string the client chooses to send. Nothing checks it. That cuts two ways.

  • Bots that don’t announce themselves are invisible. A scraper that sends an ordinary browser user agent looks like a person on a desktop. No user-agent match will find it.
  • Bots that claim a name may be impostors. Anyone can send GPTBot in a header. A row labelled GPTBot really means “requests that said they were GPTBot.”

So the named rows can be inflated by fakes while the unnamed traffic is undercounted. Neither direction is visible from the user agent alone.

If you need to know a request was genuine, verify the IP address. Google documents a reverse-then-forward DNS check and publishes IP ranges. Apple documents reverse DNS under applebot.apple.com. OpenAI and Anthropic publish their crawler IP addresses on the pages linked above. Verifying costs effort, which is why most dashboards, including plugin ones, don’t do it.

2. Page caches hide requests from WordPress

This is the biggest blind spot for anything that counts inside WordPress. A full-page cache, whether it’s a caching plugin, your host’s server cache or a CDN, serves a stored copy of the page without running WordPress’s PHP at all. That’s the point of a cache. A plugin that records visits in PHP never sees a request the cache answered.

So on a well-cached site, a plugin’s crawler count can be much lower than the real number. The pages crawled most often are the ones most likely to be cached. Server logs at the origin do better, but they miss requests answered at a CDN edge. Only the layer that answered the request saw it.

3. Referrers go missing

When a person clicks a link inside an AI answer, their browser may send a Referer header naming the site they came from. Often it doesn’t:

  • Mobile apps and in-app browsers frequently send no referrer.
  • A page’s referrer policy can strip it or reduce it to a bare domain.
  • Copied and pasted links never carry one.

Those visits land in “direct” or “unassigned” in your analytics. Counts of human visits from AI products are a floor for the same reason crawler counts are.

4. Counting starts when you start counting

Logs that were never kept can’t be recovered, and a plugin can only record from the day it’s installed. Short retention on managed hosts quietly trims history too. Before comparing two periods, check you actually have data for both.

How to read the numbers honestly

Given all that, treat the figures as evidence of presence and direction, not as a measurement of total volume.

  • Presence is reliable. If OAI-SearchBot fetched your pricing page yesterday, at least one request claiming that name did. That’s useful.
  • Coverage is useful. Which of your important pages have been fetched by search and indexing bots at all? A cornerstone guide no AI search bot has touched is worth a look: is it linked internally, in your sitemap, not blocked?
  • Trends are useful, with care. A sudden jump or drop in one bot’s requests usually means something changed: a vendor change, a robots.txt edit, a cache change on your side. Rule out your own changes first.
  • Status codes matter. Bots getting 403s from your firewall or 5xx errors from an overloaded server are being turned away whatever robots.txt says.
  • Don’t add the rows into a “share of AI traffic.” The rows have different blind spots, and summing them gives a precise-looking number with no real meaning.

A simple routine

  1. Once a month, pull the logs, or open your plugin or CDN report.
  2. Note which AI bots appeared, grouped by purpose: on-demand, search, training.
  3. Check your most important pages were fetched by the search bots you’ve allowed.
  4. Look for error status codes served to bots you meant to allow.
  5. In analytics, check referrals from AI products, and remember “direct” contains more of them than it shows.
  6. Write down any robots.txt, caching or firewall change, so next month’s trend has an explanation.

Where Rankmizer fits

The Rankmizer WordPress plugin has an AI Traffic screen that records visits from 23 AI crawlers, grouped by purpose: on-demand, search and indexing, traditional search, and training. It records human visits referred from AI answers separately. A coverage grid shows which of your audited pages were crawled, next to a full request log. It keeps 90 days of daily detail and monthly totals for 24 months, and needs no licence.

It has the limits described above, and says so. Matching is on user agent, which can be spoofed and isn’t verified. Page caches hide some requests. Referrals are missed when the AI app sends no referrer. Recording starts at install, with no backfill. Read its counts as a floor, not a total. More on AI visibility.

See what AI search reads on your page

Paste your content and get the check instantly. No account, no waiting.

Check my content