[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/waf/custom-rules/use-cases/allow-traffic-from-verified-bots/ [Back]  [Original]

Allow traffic from search engine bots and other verified bots Cloudflare Web Application Firewall (WAF) docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /WAF
  3. /
  4. /Common use cases
  5. /Allow traffic from search engine bots

Allow traffic from search engine bots

Last updated Apr 16, 2026Copy as MarkdownView as MarkdownAgent setup
OverviewOther resources

This example custom rule challenges requests from a list of countries, but allows traffic from search engine bots such as Googlebot and Bingbot and from other verified bots.

The rule expression uses the cf.client.bot field to determine if the request originated from a known good bot or crawler.

  • When incoming requests match:

    Field Operator Value Logic
    Country is in Mexico, United States And
    Known Bots equals false

    If you are using the expression editor:
    (ip.src.country in {"US" "MX"} and not cf.client.bot)

  • Then take action: Managed Challenge

Other resources

PreviousAllow traffic from IP addresses in allowlist onlyNextAllow traffic from specific countries only

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page