Implement a Challenge Page via WAF custom rules

Last updated May 6, 2026 You can implement a Challenge Page to your website or application by creating a WAF custom rule.

Challenges are triggered by a rule in the Web Application Firewall (WAF), Bot Management, or Rate limiting.

  • Bot Management: Challenge visitors that appear automated based on their bot score or a specific detection ID.
  • Rate limiting: Challenge visitors who exceed your configured rate limits.

Was this helpful?

YesNo

On this page

Implement a Challenge Page via WAF custo - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/create-custom-rule/#page","headline":"Implement a Challenge Page via WAF custom rules","description":"Create WAF custom rules that issue challenge pages based on bot scores or rate limits.","url":"https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/create-custom-rule/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/create-custom-rule/og.png?v=aceb2d843fb69d93","dateModified":"2026-05-06","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Use the cf-mitigated header to identify challenge page responses in fetch and XHR requests. title: Detect a Challenge Page response image: https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/detect-response/og.png?v=fba4ed4792601613


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-challenges/llms.txt
Use this file to discover all available pages before exploring further.