Initialize the Bot Management resource
Configuration management
Get configuration
Retrieve the current Bot Management configuration for a zone.Update configuration
Update Bot Management settings for a zone.Zone identifier
Enable rule to block AI Scrapers and Crawlers. Options:
block- Block AI scrapers and crawlersdisabled- Allow AI scrapers and crawlersonly_on_ad_pages- Block only on ad pages (not available for Enterprise)
Specifies the Robots Access Control License variant to use. Options:
off- Disable robots.txt managementpolicy_only- Use policy-based robots.txt
Enable rule to punish AI Scrapers and Crawlers via a link maze. Options:
enabled- Enable crawler protectiondisabled- Disable crawler protection
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Whether to enable Bot Fight Mode
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Bot Fight Mode configuration
Bot Fight Mode is a basic bot protection plan suitable for smaller sites.Super Bot Fight Mode configuration
Super Bot Fight Mode provides enhanced bot protection with more granular control.Super Bot Fight Mode - Definitely automated
Action to take on definitely automated requests. Options:
allow- Allow the requestblock- Block the requestmanaged_challenge- Issue a managed challenge
Action to take on verified bot requests. Options:
allow- Allow verified botsblock- Block verified bots
Enable static resource protection. Enable if static resources on your application need bot protection. Note: This can also result in legitimate traffic being blocked.
Whether to optimize Super Bot Fight Mode protections for WordPress
Super Bot Fight Mode - Likely automated
Action to take on likely automated requests. Options:
allow- Allow the requestblock- Block the requestmanaged_challenge- Issue a managed challenge
Bot Management for Enterprise configuration
Enterprise Bot Management provides the most advanced bot detection using machine learning.Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.
Indicates that the bot management cookie can be placed on end user devices accessing the site. Defaults to true.
Whether to disable tracking the highest bot score for a session in the Bot Management cookie
Cleaning up configuration after plan changes
When upgrading or downgrading your bot management plan, you may need to clean up old configurations.Clean up for Bot Fight Mode
Clean up for Super Bot Fight Mode Pro
Clean up for Super Bot Fight Mode Business
Clean up for Bot Management Enterprise
Response types
BotFightModeConfiguration
Configuration for Bot Fight Mode.Whether Bot Fight Mode is enabled
Whether JavaScript detections are enabled
AI bots protection setting
Robots Access Control License variant
Crawler protection setting
Whether robots.txt is managed by Cloudflare
Whether the zone is using the latest ML model
Unauthorized settings currently active on the zone (typically from upgrades/downgrades)
SubscriptionConfiguration
Configuration for Enterprise Bot Management subscription.Whether automatic model updates are enabled
Whether the bot management cookie is enabled
Whether session score tracking is suppressed
Whether JavaScript detections are enabled
AI bots protection setting
Whether the zone is using the latest ML model