User agent claims a known crawler but the IP isn't theirs
- How to check it
- Reverse DNS, then forward DNS; or the operator's IP list
- Backed by
- Google says the Googlebot user agent "is often spoofed by other crawlers"
How to spot unwanted and spoofed bots, why robots.txt can't stop them, and how to block them with DNS checks and Cloudflare rules. Log commands included.
Bad bots are defined by behavior, not by name: faking a crawler's identity, ignoring robots.txt, or sending abusive request volumes. RFC 9309 says robots.txt rules are not a form of access authorization, so enforcement happens at your server or CDN. Verify the source first, then challenge or block it.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
In the Cloudflare dashboard, go to the Security Settings page.
Filter by Bot traffic.
Go to Bot fight mode and turn it on. Turn it off the same way if it breaks legitimate traffic.
| Option | What it does | Caveat from Cloudflare's docs |
|---|---|---|
| Bot Fight Mode | Free. Identifies traffic matching patterns of known bots and issues computationally expensive challenges | May challenge API or mobile app traffic; cannot be customized via WAF custom rules |
| Custom rule on user agent | Blocks or challenges a specific User-Agent value, for example http.user_agent eq "BadBot/1.0.2 (+http://bad.bot)" | Cloudflare recommends custom rules instead of user agent rules |
| AI Labyrinth | Adds invisible links to catch AI crawlers that crawl without permission | Its actions are not mitigations: Cloudflare does not block or challenge the request |
| Bot scores in WAF rules | Block, challenge or allow by score | Granular scores are Enterprise with Bot Management only |
A user agent rule only stops bots that tell the truth about their user agent. A bad bot that copies a browser string walks past it, which is why IP and behavior signals matter more.
grep '/private/' access.log | awk '{print $1}' | sort | uniq -c | sort -rn | headTake the busiest IPs that claim a known crawler and run reverse then forward DNS on them. An IP that fails is not that crawler. Handle by IP or by pattern, not by name. If a crawler you know and verified is only too heavy, a Crawl-delay or a path block in robots.txt is the milder step. See crawl budget for when load matters.
awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -20
awk -F'"' '{print $6}' access.log | sort | uniq -c | sort -rn | head -205 questions people ask next, answered from the sources on this page.
Bots that are unwanted because of what they do: faking an identity, ignoring robots.txt, abusing request rates, or targeting your site with attacks such as credential stuffing. A name alone doesn't make a bot bad.
No. RFC 9309 says robots.txt rules are not a form of access authorization. Bots that don't cooperate ignore them, so use server or CDN rules.
Run a reverse DNS lookup on the IP, confirm the name is on googlebot.com, google.com or googleusercontent.com, then forward-resolve it and check it returns the same IP. Google says the user agent is often spoofed.
It can, if you block a real search crawler. Google says blocking Googlebot affects Google Search and several other Google products. Verify a bot's identity before you block it.
Cloudflare describes Bot Fight Mode as a simple, free product. It may challenge API or mobile app traffic, so test after you turn it on.
The free audit reads your robots.txt and checks AI visibility in ChatGPT, Perplexity, Gemini and Google AI Overviews.