Free auditStart free
AI crawlerBot traffic · Blocking

Bad bots

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.

4 min
read
8
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

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.

30-second check

Are AI crawlers reaching your site?

Four quick questions, then a straight answer.

1/4Have you checked your robots.txt rules for AI crawlers?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02Good to know

Verify before you block

The costly mistake is blocking a real crawler. Google makes the point itself: before you decide to block Googlebot, be aware its user agent is often spoofed, so confirm that a problematic request actually comes from Google. A fake that uses Googlebot's name is a bad bot. Real Googlebot is not. Our Googlebot IP guide has the commands, and good bots covers the other major operators.
03Explained

robots.txt is a request, not a lock

RFC 9309 states that robots.txt rules "are not a form of access authorization." Crawlers are requested to honor them. A bot acting in bad faith simply doesn't. Use robots.txt for bots that cooperate, such as the ones on our crawler list, and a server or CDN rule for the rest.
04How it works

Block options on Cloudflare

These are the controls Cloudflare documents. Check your own plan and settings before relying on any of them.
  1. 1

    Open the setting

    In the Cloudflare dashboard, go to the Security Settings page.

  2. 2

    Filter

    Filter by Bot traffic.

  3. 3

    Turn it on

    Go to Bot fight mode and turn it on. Turn it off the same way if it breaks legitimate traffic.

OptionWhat it doesCaveat from Cloudflare's docs
Bot Fight ModeFree. Identifies traffic matching patterns of known bots and issues computationally expensive challengesMay challenge API or mobile app traffic; cannot be customized via WAF custom rules
Custom rule on user agentBlocks 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 LabyrinthAdds invisible links to catch AI crawlers that crawl without permissionIts actions are not mitigations: Cloudflare does not block or challenge the request
Bot scores in WAF rulesBlock, challenge or allow by scoreGranular 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.

05Check it

Check it in 2 minutes

Who requested a path your robots.txt disallows (replace /private/)
grep '/private/' access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head

Take 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.

Busiest IPs and their top user agents (combined log format)
awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -20
awk -F'"' '{print $6}' access.log | sort | uniq -c | sort -rn | head -20
Questions

Asked a lot.

5 questions people ask next, answered from the sources on this page.

01What are bad bots?

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.

02Can robots.txt block bad bots?

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.

03How do I tell a fake Googlebot from the real one?

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.

04Will blocking bots hurt my SEO?

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.

05Is Bot Fight Mode free?

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.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • cloudflare.com
  • google.com
  1. 01RFC 9309: Robots Exclusion Protocolrfc-editor.org · checked 2026-10-24
  2. 02Cloudflare: Botsdevelopers.cloudflare.com · checked 2026-10-24
  3. 03Cloudflare: Verified botsdevelopers.cloudflare.com · checked 2026-10-24
  4. 04Cloudflare: Get started with Bot Fight Modedevelopers.cloudflare.com · checked 2026-10-24
  5. 05Cloudflare: User Agent Blockingdevelopers.cloudflare.com · checked 2026-10-24
  6. 06Cloudflare: AI Labyrinthdevelopers.cloudflare.com · checked 2026-10-24
  7. 07Cloudflare: Bot scoresdevelopers.cloudflare.com · checked 2026-10-24
  8. 08Google: What is Googlebotdevelopers.google.com · checked 2026-10-24
Free · 2 minutes

Can AI engines reach your pages?

The free audit reads your robots.txt and checks AI visibility in ChatGPT, Perplexity, Gemini and Google AI Overviews.

Free, no card60 secondsNobody will call you
  • 0→7 ChatGPT citations in six weeks Paylane
  • 46 fixes shipped without a ticket Brightpipe