Question

How to allow OAI-SearchBot in Cloudflare WAF

You do not need to disable Bot Fight Mode globally. The safer approach is to keep strict protection and add one narrow exception rule for legitimate crawler behavior.

Safe rule strategy

  1. Keep your default managed challenge or bot score policy.
  2. Add an allow exception only for known crawler token and public crawl paths.
  3. Do not allow admin or private paths in the exception.
  4. Review Security Events and access logs after every change.

Cloudflare expression pattern (example)

(http.user_agent contains "OAI-SearchBot")
and (http.request.uri.path matches "^/(robots\\.txt|sitemap\\.xml|llms\\.txt|guides/|questions/|tools/)")
and not (http.request.uri.path matches "^/(admin|wp-admin|login|api/private)")

Validation checklist

Common mistake

Teams often allow by user-agent only and accidentally open sensitive routes. Always combine UA condition with path constraints.

If you still see blocked traffic, continue with why OAI-SearchBot gets 403 behind Cloudflare.

Check crawler behavior in logs