How to see which AI bots visit your store, and which ones are fake
Read your logs for OAI-SearchBot, GPTBot, ChatGPT-User and PerplexityBot, then check each hit against the IP lists the vendors publish
If you sell online, you've probably read that you should "allow AI crawlers." Fewer people tell you how to find out whether they ever show up, and whether the traffic that says it's ChatGPT or Perplexity really is.
Your server logs answer both questions. This guide shows how to read them, what the bot names mean, and how to check a visitor against the IP lists the vendors publish. Everything below comes from OpenAI's and Perplexity's own crawler documentation, and the script at the end was run against the live IP lists on December 1, 2026.
Know which bot is which
The names look alike, but they do different jobs. OpenAI documents four user agents, and Perplexity documents two.
| User agent | What it's for | Does robots.txt apply? |
|---|---|---|
| OAI-SearchBot | Surfaces sites in ChatGPT's search results | Yes. OpenAI recommends allowing it |
| GPTBot | Crawls content that may be used to train OpenAI's models | Yes. Disallowing it opts out of training |
| ChatGPT-User | Visits a page when a person asks ChatGPT about it | OpenAI says robots.txt rules may not apply, because a user started the request |
| OAI-AdsBot | Checks landing pages submitted as ChatGPT ads | Only visits pages submitted as ads |
| PerplexityBot | Surfaces and links sites in Perplexity search | Yes. Not used to train foundation models |
| Perplexity-User | Fetches a page when a person asks Perplexity | Perplexity says it generally ignores robots.txt, because a user requested it |
Two things to take from the table.
- Search bots and user-triggered fetchers are different. If OAI-SearchBot is blocked, OpenAI says your site won't be shown in ChatGPT search answers, though it can still appear as a navigational link. If ChatGPT-User is blocked at your firewall, a shopper who pastes your product link into ChatGPT gets nothing back.
- Blocking training is not blocking search. OpenAI states the settings are independent. You can allow OAI-SearchBot and disallow GPTBot.
Sources: OpenAI crawler overview and Perplexity crawlers.
Step 1: get your access logs
You need raw request logs with the user agent in them.
- Self-hosted WooCommerce, Magento or a custom store: your web server writes them. On nginx it's usually
/var/log/nginx/access.log. On shared hosting, look for "Raw Access" or "Logs" in your control panel. - Behind a CDN or firewall: the CDN's bot or traffic analytics often show request counts by user agent, with the status your visitor received. Export those if you can't get server logs.
- Hosted platforms: many don't give merchants raw access logs. Check your plan, and if you can't get them, use the CDN route or the curl test in the last section.
Step 2: count AI bot requests and status codes
Most servers write the "combined" log format, where the status code is the ninth field. This counts requests from the five documented crawlers by status:
grep -E "OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User" access.log \
| awk '{print $9}' | sort | uniq -c | sort -rn
Reading the output:
- Mostly 200: they're getting your pages.
- 403, 429 or 503: something is turning them away. That's usually a firewall, a rate limit or a bot-protection rule, not robots.txt.
- Nothing at all: the bot hasn't visited, or your firewall drops it before your server logs it. Check the CDN's logs too.
To see which pages they ask for:
grep "OAI-SearchBot" access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20
If the list is all /robots.txt and nothing else, the bot is checking permission but not reaching products. OpenAI says OAI-SearchBot may add a robots.txt; marker to its user agent when it fetches that file, so those lines are easy to tell apart.
Step 3: don't trust the user agent alone
A user agent is a text string. Anyone can send OAI-SearchBot in a request, including scrapers hoping to be let through. OpenAI and Perplexity each publish the IP ranges their bots use, so you can check the claim:
| Bot | Published list | Prefixes on Dec 1, 2026 |
|---|---|---|
| OAI-SearchBot | openai.com/searchbot.json | 39 |
| GPTBot | openai.com/gptbot.json | 18 |
| ChatGPT-User | openai.com/chatgpt-user.json | 367 |
| PerplexityBot | perplexity.ai/perplexitybot.json | 21 |
| Perplexity-User | perplexity.ai/perplexity-user.json | 10 |
Each file has a creationTime field. On the day I checked, the ChatGPT-User list showed November 25, 2026 and the PerplexityBot list showed November 18, 2026. The lists change, so don't paste ranges into a rule once and forget them. Perplexity's own firewall guide says to update your rule when its published ranges change.
Here's a short script that reads a combined-format log, downloads the current lists and labels each bot request as verified or unverified:
import ipaddress, json, re, sys, urllib.request
from collections import Counter
LISTS = {
"OAI-SearchBot": "https://openai.com/searchbot.json",
"GPTBot": "https://openai.com/gptbot.json",
"ChatGPT-User": "https://openai.com/chatgpt-user.json",
"PerplexityBot": "https://www.perplexity.ai/perplexitybot.json",
"Perplexity-User": "https://www.perplexity.ai/perplexity-user.json",
}
def load_ranges():
out = {}
for bot, url in LISTS.items():
req = urllib.request.Request(url, headers={"User-Agent": "log-check/1.0"})
data = json.load(urllib.request.urlopen(req, timeout=20))
out[bot] = [ipaddress.ip_network(p.get("ipv4Prefix") or p.get("ipv6Prefix"))
for p in data["prefixes"]]
return out
LINE = re.compile(r'^(\S+) .*?"(?:GET|HEAD|POST) (\S+) [^"]*" (\d{3}) .*?"[^"]*" "([^"]*)"')
def main(path):
ranges = load_ranges()
seen = Counter()
for line in open(path, errors="ignore"):
m = LINE.match(line)
if not m:
continue
ip, url, status, ua = m.groups()
for bot, nets in ranges.items():
if bot.lower() in ua.lower():
try:
ok = any(ipaddress.ip_address(ip) in n for n in nets)
except ValueError:
ok = False
seen[(bot, "verified" if ok else "UNVERIFIED", status)] += 1
for (bot, verdict, status), n in sorted(seen.items()):
print(f"{bot:16} {verdict:10} HTTP {status} x{n}")
main(sys.argv[1])
Save it as aibots.py and run python3 aibots.py access.log. I tested it on a made-up log with five lines: two from an address inside OpenAI's published OAI-SearchBot ranges, two from an address that isn't, and one ordinary browser. It printed:
OAI-SearchBot UNVERIFIED HTTP 200 x1
OAI-SearchBot UNVERIFIED HTTP 403 x1
OAI-SearchBot verified HTTP 200 x2
The browser line was ignored, as it should be. Your real log will be bigger and messier, so treat the verdicts as a first pass. If your server sits behind a proxy or CDN, the address in the log may be the proxy's, not the visitor's. In that case use the forwarded-for field your proxy adds.
Step 4: act on what you found
- Verified, mostly 200: nothing to fix.
- Verified, but 403 or 429: your own protection is blocking a real bot. Allow it by user agent and published IP range together. Perplexity's guide gives a Cloudflare rule that matches both, and OpenAI recommends allowing OAI-SearchBot's published IP ranges.
- Unverified claims of being an AI bot: you can block these without affecting real AI search. A request that names a bot but doesn't come from its ranges isn't that bot.
- No visits at all: confirm robots.txt isn't blocking the bot. OpenAI says changes can take about 24 hours to be picked up.
No log access? You can still run a rough test from your own machine:
curl -s -o /dev/null -w "%{http_code}\n" \
-A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot" \
https://your-store.com/
A 403 here doesn't prove the real bot is blocked, since your IP isn't OpenAI's. But it shows your firewall reacts to that user agent, which is worth a closer look.
For more on how crawlers read a store, see robots.txt for AI crawlers and what AI agents see on your site.
About the author
- SubstrateLayer checks what AI shopping agents and AI search can actually read on your store: crawler access, product data, prices and policy links. Free 2-page preview at substratelayer.com.
Comments
Join the discussionNo comments yet. Be the first to comment.