Fixing and controlling bots
This guide helps you block, slow down or allow bots from your dashboard, and undo any change. The WordPress plugin or a guard enforces the rules you apply.
Where fixes live
Each bot card and each Worth fixing card on your dashboard lists its fixes. See Reading your dashboard.
- Fixes Botmotive suggests first carry a Recommended pill.
- Other choices sit under Other options, or Options when nothing is recommended. The number in brackets says how many there are.
- Some fixes carry a short note. Read it before you apply.
Each fix has one of these buttons:
- Apply: Botmotive turns the fix into a rule.
- Mark done: the fix is a change you make yourself, such as pasting a rule into your CDN. The button records that you made it.
- No button: the fix is advice only. The note says what to change.
Who carries out the rule
A rule only takes effect where something enforces it:
- WordPress plugin: it picks up new rules every five minutes. It runs before other plugins and your theme load.
- Guards for Next.js, Express and Node, Laravel and Django: they check for new rules every minute by default.
- Other hosts (Cloudflare only, Vercel, Railway without a guard, your own server): Botmotive can only watch. Copy the rule from Rule for your CDN or server and add it yourself. See Hosts without a guard.
When the plugin or a guard enforces a rule, a blocked visitor gets a "Forbidden" page (status 403). A throttled visitor gets "Too many requests" (status 429), with a note saying when to try again.
If a visitor matches several rules, the order is: denied paths first, then blocks, then allows, then throttles. So Allow protects a bot from throttles, but not from a block.
The kinds of fix
Block
Turns the bot away. Botmotive blocks by the bot's addresses. Once three or more of its addresses share a block of addresses, it blocks that whole block.
Common titles: Block this visitor, Block the attacking IPs, Block this scanner, Block the scraper, Block the watcher.
For a fake bot, the fix is Block these IPs (not the [bot] user-agent). It never blocks by name, so the real bot is not affected.
Block the whole network (AS…) blocks a whole hosting provider. Botmotive offers it only for bots in a data centre, and never recommends it. It also blocks anyone else on that provider, including bots you may want. The WordPress plugin and the guards cannot enforce this rule. Use the Cloudflare rule instead.
Throttle
Limits how fast each address can make requests. Botmotive sizes the limit from the bot's own behaviour. It takes half of what its busiest address actually did, up to 30 requests a minute. Slow bots get an hourly limit instead, such as "12 requests an hour per IP". The title shows the limit.
If a bot is too slow for any limit to matter, Botmotive offers no throttle. For a Heavy bot it offers Block this heavy visitor instead.
For Credential stuffing, the fix is Rate-limit wp-login.php to 5 attempts a minute per IP.
Allow
Allow [bot] exempts a bot from throttles. It matches the bot's name and its verified addresses, so a fake copy is not exempted. Botmotive only recommends it for bots whose identity checked out.
Deny path
Deny public access to [file] stops anyone downloading a file that should not be public. It comes with Exposed file. The note says: "Then delete the file from the web root and rotate every secret it held: it has already been downloaded." Do both. The rule alone does not undo the leak.
Disable XML-RPC
Disable XML-RPC turns off WordPress's xmlrpc.php, a common target for password guessing. It comes with Credential stuffing. Skip it if you use the Jetpack or WordPress mobile apps.
robots.txt opt-out
Opt out of [bot] in robots.txt adds lines that ask that bot to stay away from your whole site:
User-agent: GPTBot
Disallow: /
Polite bots obey this over time. Rude ones ignore it, so pair it with a block if needed. The notes explain the trade-off:
- For an AI training crawler: "Stops future training crawls. Content already collected is not removed."
- For an AI assistant: "You stop appearing as a source in this assistant's answers."
For a Crawler trap, the fix is Keep crawlers out of [pattern]. It asks all crawlers to skip those filter and sort URLs. Also add rel="nofollow" to the links that create them.
The WordPress plugin adds these lines to the robots.txt WordPress serves, between # BEGIN Botmotive and # END Botmotive. If your site has a real robots.txt file, WordPress cannot change it. The plugin's settings page then shows the lines to paste in yourself. For the guards, see Next.js and Node, Django or Laravel.
To control AI bots by type instead of one at a time, see AI bots, robots.txt and licensing.
Allowlist and other advice
Some Worth fixing cards need a change only you can make:
- Remove the robots.txt line blocking [bot]: the note shows the line to remove or narrow.
- Let verified [bot] through your CDN: a Cloudflare Skip rule. Put it above your bot-fight or challenge rules. It only matches bots Cloudflare has verified.
- Allowlist [bot] in your security plugin: add the bot's verified address ranges to the plugin's allowlist. In Wordfence, that is Firewall → Allowlisted IPs.
- Fix server errors served to [bot]: the bot gets 503 errors. Check server load, or a maintenance mode left on.
- Fix N URLs [bot] can't fetch: redirect or restore the pages listed in the note.
Guardrails
Some fixes ask before they act.
Blocking or opting out of a verified search engine, such as Googlebot or Bingbot, is never recommended. When you press Apply, you see a warning like this:
This removes your site from Google's search results over time. Continue?
Press Cancel to stop, or Yes, do it to go ahead.
Only a site owner can apply these fixes. A member who presses Apply sees "Only the site owner can confirm this fix. Ask them to apply it." instead of the warning.
If the bot changed since the page loaded, you see "This bot changed since the page loaded. Refresh and try again."
After you apply a fix
The fix shows a check mark and Applied, and the card moves to Fixes applied. A line marks the moment on the traffic chart.
After a while, the fix shows what changed for that bot, for example "−74% requests, 41 GB/day less". This compares a day before the fix with a day after, averaged over up to a week on each side. It appears once there is at least an hour of data on each side.
Undo
Every fix can be undone. Press Undo next to it. The rule is removed, and the plugin or guard stops enforcing it at its next check. A line on the traffic chart marks the undo.
Undoing a robots.txt opt-out removes those lines from the Botmotive section.
This is me
Sometimes Botmotive flags your own traffic. Examples: an uptime check, a crawler you run, or you on a VPN.
Press This is me on that bot's card. The card disappears at once. From the next window on, those visits count as human. They also stop raising alerts.
To reverse it, open Settings. Under Marked as you, press Undo next to the entry.
Hosts without a guard
Open Rule for your CDN or server under a fix to see ready-made rules. Press Copy next to the one you need.
| Rule | Used for |
|---|---|
| robots.txt | Opt-outs. Paste at the end of your robots.txt. |
| Cloudflare WAF rule | Blocks, denied paths and allows. It shows the action (Block or Skip) and the expression to paste. |
| Cloudflare rate limit | Throttles. It shows the expression, the rate per IP and the action. |
| Apache .htaccess | Denied paths and XML-RPC. |
| nginx | Denied paths and XML-RPC. |
In Cloudflare, go to Security rules and select Create rule, then Custom rules or Rate limiting rules. Select Edit expression to open the expression editor and paste the expression there. See Cloudflare's guides for custom rules, rate limiting rules and the expression editor.
After you add the rule yourself, press Apply or Mark done in Botmotive. This keeps your list of fixes and the chart markers accurate.
Need help? See Troubleshooting.