Skip to content

Bot protection

Pick one of five protection levels, let verified bots and your own paths through, and see what each level really does on Cloudflare.

Bot protection decides what happens to automated traffic at Cloudflare, before it reaches WordPress. Open your site, then Protection, to see the level of the environment you are looking at and change it. The Scans card on that tab is a different feature, the malware scan (see Protection).

Pick a protection level

  1. Open your site, then Protection.
  2. On the Bot protection card, choose Change level.
  3. Pick one of the five cards. Each card shows what happens to each kind of traffic: allow, challenge, or block.
  4. Choose Change protection level. The button stays off until you pick a level other than the current one.

WP Waterfall applies the level through a job, and the change shows in the site's activity log. A new live environment starts on Block automations.

The levels

Traffic Block malicious traffic Block automations Challenge bots Challenge non-browsers Challenge everyone
Verified bots Allow Allow Allow Allow Allow
Known automation tools Allow Block Challenge Challenge Challenge
Clients without browser headers Allow Allow Challenge Challenge Challenge
Clients that do not call themselves browsers Allow Allow Allow Challenge Challenge
Everyone else Allow Allow Allow Allow Challenge
Malicious traffic Block Block Block Block Block
  • Block malicious traffic is the always-on protection every site has. It needs no rule of its own.
  • Block automations is recommended for most sites. It blocks scripts and scrapers that say what they are.
  • Challenge bots suits a site seeing more scraping, spam, or suspicious traffic. Clients that do not look like a browser get a Cloudflare check instead of a block.
  • Challenge non-browsers suits a site that scrapers and scripts still reach. It does everything Challenge bots does, and it also gives a Cloudflare check to any client whose user agent does not start like a browser's. People in real browsers never see it. Scripts, webhooks, and apps that call your site without a browser's user agent get the check and fail, so add them as exceptions.
  • Challenge everyone suits a site under active attack. Every visitor sees a short Cloudflare check before the site loads, and scripts, webhooks, and apps that call your site fail unless you add them as exceptions. Turn it back down when the attack stops.

What each row means

  • Verified bots: search engines, uptime monitors, and other bots on Cloudflare's verified bot list. You can turn this off.
  • Known automation tools: requests with no user agent, or one from a scripting tool or headless browser, such as curl, Python, Go, Java, Scrapy, or HeadlessChrome.
  • Clients without browser headers: requests with no Accept-Language header, or on HTTP/1.0. Real browsers always send the header and never use HTTP/1.0.
  • Clients that do not call themselves browsers: requests whose user agent does not start like a browser's. Every mainstream browser starts its user agent with Mozilla/, and an empty user agent does not.
  • Everyone else: people, and any bot that looks like a browser.
  • Malicious traffic: known attacks, stopped by Cloudflare's managed rules, WP Waterfall's WordPress hardening rule, and the login rate limit.

What do the levels not catch?

WP Waterfall runs on Cloudflare Enterprise, but we do not use Cloudflare's Bot Management add-on. There is no score that tells likely humans from likely bots, and no machine learning. Every level reads only what a request says about itself: its user agent, a few headers, and Cloudflare's verified bot flag. A bot that copies a real browser's user agent and headers falls under Everyone else, and only Challenge everyone stops it. If the shared Cloudflare rules are full, the tab says Not applied and why, your level is saved, and the always-on protection still applies. Adding a domain makes your rule longer, so a full rule can push it out later. WP Waterfall then tells you in the bell and by email, and our team hears about it. Save the level again when there is room, or write to support.

Turn bot protection off or on

Choose Disable on the Bot protection card to turn bot protection off. The always-on protection at Cloudflare still blocks malicious traffic. The cards that exist only for bot protection leave the tab: the request counts, the request breakdown, Allow verified bots, the exceptions, and the always-on note. The Scans card stays, and so does Block AI crawlers, because it is a separate setting that keeps working. The Bot protection card stays with an Enable button, which turns it back on at the level you had before.

Let verified bots through

Allow verified bots is on by default, so bots on Cloudflare's verified list always pass, at every level. Turn it off only to stop crawlers.

Block AI crawlers

Turn on Block AI crawlers to refuse known AI training and AI search crawlers, such as GPTBot, ClaudeBot, PerplexityBot, CCBot, Bytespider, and Amazonbot. They get a 403 before the request reaches WordPress. Search engines such as Googlebot and Bingbot are not on the list, so search stays open. The switch is off by default and works at every level, even when bot protection is off. It matches the user agent a crawler sends, so a crawler that hides its name is not caught.

Three layers refuse the same crawlers, from one shared list, so one failing layer does not let them in:

  1. Cloudflare's firewall, where WP Waterfall's Cloudflare plan has room for a rule. The rule is shared by all sites, so it never costs you a rule of your own. When the plan has no room, the tab says so and the next two layers cover your site.
  2. The edge cache Worker, which answers 403 from the edge. It costs no Cloudflare rule.
  3. Your site's server, which answers 403 for any request that reaches it without passing the Worker, such as a request sent straight to the server's address.

A user agent you add under Exceptions passes all three layers. Staging and preview environments refuse all crawlers already, so the switch changes nothing there. If your site's server runs an older agent, the tab says the server part waits for an update, and the edge layers still work.

Exceptions

Choose Add exception to let a path, such as a webhook URL, an IP address or range, such as your office, or a user agent, such as UptimeRobot, skip bot protection. A user agent exception matches part of the name without regard to letter case, and also passes the AI crawler block. You can add up to 20 user agents, 100 paths, and 100 addresses. Remove an exception from its three dot menu. Certificate checks under /.well-known/ always pass, and Challenge everyone also lets /wp-cron.php through so scheduled tasks keep running.

Staging and previews

Staging and preview environments always block crawlers and bots, so the dashboard shows no bot cards for them. They also tell search engines not to index them. See Staging privacy.

Always on

At Cloudflare, every site blocks requests for wp-config.php, /.env, /.git/, readme.html, debug.log, PHP files in uploads, and author scans on the home page (/?author=). Every site also limits each address to 5 requests to wp-login.php every 10 seconds, then blocks it for 10 seconds. Cloudflare's managed rules run on every request. Your site's web server adds its own limits and hides more files: see Security defaults.

Read the traffic counts

The Requests card shows requests, challenges, and blocks for the last 24 hours, from Cloudflare, for your site's domains only. Blocks and challenges include the always-on rules. The Request breakdown card shows the same 24 hours in two stacked bars, with Download CSV:

  • Traffic classification sorts requests by the user agent name Cloudflare reports: browsers, named bots and tools (such as Googlebot or curl), and unclassified traffic.
  • Allowed, challenged, and blocked sorts requests by the answer. Blocked counts 403 and 429 answers. A figure Cloudflare does not report says "Not on this plan", and challenge pages then count as blocked.

A card stays hidden when Cloudflare cannot count requests for your domains alone. WP Waterfall never shows counts for a whole shared zone.

For the days before today, open Analytics and choose Bot traffic. It stacks the requests that reached your server by class (visitors, named bots, AI crawlers, and automation tools), shows how many requests Cloudflare allowed and blocked each day, and lists the top paths, user agents, countries, and addresses of each class.

Quick answers

A service that calls my site gets blocked or challenged. Add its path or its address as an exception, or pick Block malicious traffic.

I cannot log in and see a block page. Your address sent more than 5 login requests in 10 seconds. Wait 10 seconds and try again.

Will Google still crawl my site? Yes, at every level, while Allow verified bots is on.

API

  • GET /v1/environments/{id}/bot-protection returns enabled, level, matrix_key, the exceptions, where the rule runs, and the last 24 hours of counts.
  • PUT /v1/environments/{id}/bot-protection takes level (block_malicious, block_automations, challenge_bots, challenge_non_browsers, or challenge_everyone) and enabled. Fields you leave out keep their value. The older mode field still works: off and monitor turn protection off, challenge means Challenge bots, and block means Block automations.
  • PUT also takes block_ai_crawlers (true or false) and user_agent_allowlist (up to 20 user agent fragments, which replace the saved list). GET returns both. The change is one job: it updates Cloudflare, the edge cache Worker, and your site's server.
  • GET /v1/environments/{id}/bot-protection/stats
  • GET /v1/environments/{id}/bot-protection/breakdown returns classes and outcomes, each with count and percent, plus total and a note.

AI agents can call the set_bot_protection tool on the WP Waterfall MCP server, with level, enabled, block_ai_crawlers, and user_agent_allowlist. It asks for your approval first.

Still stuck?

Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.