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
- Keep your default managed challenge or bot score policy.
- Add an allow exception only for known crawler token and public crawl paths.
- Do not allow admin or private paths in the exception.
- 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
- Security Events should show fewer 403 events for OAI-SearchBot paths.
- Server logs should show
200/304on allowed pages. - No growth in exploit probes from the same policy change window.
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.