Update Zone Bot Management Config
Updates the Bot Management configuration for a zone.
This API is used to update:
- Bot Fight Mode
- Super Bot Fight Mode
- Bot Management for Enterprise
See Bot Plans for more information on the different plans
If you recently upgraded or downgraded your plan, refer to the following examples to clean up old configurations.
Copy and paste the example body to remove old zone configurations based on your current plan.
Clean up configuration for Bot Fight Mode plan
{
"sbfm_likely_automated": "allow",
"sbfm_definitely_automated": "allow",
"sbfm_verified_bots": "allow",
"sbfm_static_resource_protection": false,
"optimize_wordpress": false,
"suppress_session_score": false
}
Clean up configuration for SBFM Pro plan
{
"sbfm_likely_automated": "allow",
"fight_mode": false
}
Clean up configuration for SBFM Biz plan
{
"fight_mode": false
}
Clean up configuration for BM Enterprise Subscription plan
It is strongly recommended that you ensure you have custom rules in place to protect your zone before disabling the SBFM rules. Without these protections, your zone is vulnerable to attacks.
{
"sbfm_likely_automated": "allow",
"sbfm_definitely_automated": "allow",
"sbfm_verified_bots": "allow",
"sbfm_static_resource_protection": false,
"optimize_wordpress": false,
"fight_mode": false
}Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYAPI Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Accepted Permissions (at least one required)
Bot Management WriteBody ParametersJSONExpand Collapse
body: BotFightModeConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 13 more } or SuperBotFightModeDefinitelyConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 16 more } or SuperBotFightModeLikelyConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 17 more } or SubscriptionConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 15 more }
BotFightModeConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 13 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
stale_zone_configuration: optional object { optimize_wordpress, sbfm_definitely_automated, sbfm_likely_automated, 3 more } A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
Indicates that the zone’s wordpress optimization for SBFM is turned on.
Indicates that the zone’s definitely automated requests are being blocked or challenged.
Indicates that the zone’s likely automated requests are being blocked or challenged.
Indicates that the zone’s static resource protection is turned on.
SuperBotFightModeDefinitelyConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 16 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
Whether to optimize Super Bot Fight Mode protections for Wordpress.
sbfm_definitely_automated: optional "allow" or "block" or "managed_challenge"Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if static resources on your application need bot protection. Note: Static resource protection can also result in legitimate traffic being blocked.
sbfm_verified_bots: optional "allow" or "block"Super Bot Fight Mode (SBFM) action to take on verified bots requests.
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
SuperBotFightModeLikelyConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 17 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
Whether to optimize Super Bot Fight Mode protections for Wordpress.
sbfm_definitely_automated: optional "allow" or "block" or "managed_challenge"Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
sbfm_likely_automated: optional "allow" or "block" or "managed_challenge"Super Bot Fight Mode (SBFM) action to take on likely automated requests.
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if static resources on your application need bot protection. Note: Static resource protection can also result in legitimate traffic being blocked.
sbfm_verified_bots: optional "allow" or "block"Super Bot Fight Mode (SBFM) action to take on verified bots requests.
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
SubscriptionConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 15 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
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
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
stale_zone_configuration: optional object { fight_mode, optimize_wordpress, sbfm_definitely_automated, 3 more } A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
Indicates that the zone’s wordpress optimization for SBFM is turned on.
Indicates that the zone’s definitely automated requests are being blocked or challenged.
Indicates that the zone’s likely automated requests are being blocked or challenged.
ReturnsExpand Collapse
result: optional BotFightModeConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 13 more } or SuperBotFightModeDefinitelyConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 16 more } or SuperBotFightModeLikelyConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 17 more } or SubscriptionConfiguration { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 15 more }
BotFightModeConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 13 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
stale_zone_configuration: optional object { optimize_wordpress, sbfm_definitely_automated, sbfm_likely_automated, 3 more } A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
Indicates that the zone’s wordpress optimization for SBFM is turned on.
Indicates that the zone’s definitely automated requests are being blocked or challenged.
Indicates that the zone’s likely automated requests are being blocked or challenged.
Indicates that the zone’s static resource protection is turned on.
SuperBotFightModeDefinitelyConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 16 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
Whether to optimize Super Bot Fight Mode protections for Wordpress.
sbfm_definitely_automated: optional "allow" or "block" or "managed_challenge"Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if static resources on your application need bot protection. Note: Static resource protection can also result in legitimate traffic being blocked.
sbfm_verified_bots: optional "allow" or "block"Super Bot Fight Mode (SBFM) action to take on verified bots requests.
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
SuperBotFightModeLikelyConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 17 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
Whether to optimize Super Bot Fight Mode protections for Wordpress.
sbfm_definitely_automated: optional "allow" or "block" or "managed_challenge"Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
sbfm_likely_automated: optional "allow" or "block" or "managed_challenge"Super Bot Fight Mode (SBFM) action to take on likely automated requests.
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if static resources on your application need bot protection. Note: Static resource protection can also result in legitimate traffic being blocked.
sbfm_verified_bots: optional "allow" or "block"Super Bot Fight Mode (SBFM) action to take on verified bots requests.
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
SubscriptionConfiguration object { ai_agents, ai_bots_migration_opt_out, ai_bots_protection, 15 more }
ai_agents: optional object { anthropic_agent, google_agent, instinct, 2 more } Configure blocking behavior for supported personal AI agents.
Configure blocking behavior for supported personal AI agents.
anthropic_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
google_agent: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
instinct: optional "disabled" or "block" or "only_on_ad_pages"Action to apply to one supported personal AI agent.
Action to apply to one supported personal AI agent.
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
ai_bots_protection: optional "block" or "disabled" or "only_on_ad_pages"Enable rule to block AI Scrapers and Crawlers.
Enable rule to block AI Scrapers and Crawlers.
ai_search: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI search bots.
Configure robots.txt policy for AI search bots.
ai_training: optional "disabled" or "disallow" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI model training bots.
Configure robots.txt policy for AI model training bots.
ai_user: optional "disabled" or "block" or "only_on_ad_pages"Configure robots.txt policy for AI assistant and agent bots.
Configure robots.txt policy for AI assistant and agent bots.
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
Enable Bot Preference Sync for this zone. When enabled, Cloudflare can serve robots.txt content derived from the zone’s AI Search, AI User, and AI Training preferences.
cf_robots_variant: optional "off" or "policy_only"Specifies the Robots Access Control License variant to use.
Specifies the Robots Access Control License variant to use.
content_bots_protection: optional "block" or "disabled"Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
Enable rule to block content bots. When enabled, blocks automated traffic with low bot scores, excluding safe verified bot categories. Exceptions should be managed via skip rules.
crawler_protection: optional "enabled" or "disabled"Enable rule to punish AI Scrapers and Crawlers via a link maze.
Enable rule to punish AI Scrapers and Crawlers via a link maze.
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Enable cloudflare managed robots.txt. If an existing robots.txt is detected, then managed robots.txt will be prepended to the existing robots.txt.
Whether to use JavaScript Detection results submitted through the API for this zone.
stale_zone_configuration: optional object { fight_mode, optimize_wordpress, sbfm_definitely_automated, 3 more } A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.
Indicates that the zone’s wordpress optimization for SBFM is turned on.
Indicates that the zone’s definitely automated requests are being blocked or challenged.
Indicates that the zone’s likely automated requests are being blocked or challenged.
Update Zone Bot Management Config
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/bot_management \
-X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{
"ai_bots_protection": "block",
"ai_search": "block",
"ai_training": "disallow",
"ai_user": "only_on_ad_pages",
"bot_preference_sync_enabled": true,
"cf_robots_variant": "policy_only",
"content_bots_protection": "disabled",
"crawler_protection": "enabled",
"enable_js": true,
"fight_mode": true,
"jsd_api_results_enabled": true
}'{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"ai_agents": {
"anthropic_agent": "block",
"google_agent": "block",
"instinct": "block",
"muse": "block",
"openai_agent": "block"
},
"ai_bots_migration_opt_out": false,
"ai_bots_protection": "block",
"ai_search": "block",
"ai_training": "disallow",
"ai_user": "only_on_ad_pages",
"bot_preference_sync_enabled": true,
"cf_robots_variant": "policy_only",
"content_bots_protection": "disabled",
"crawler_protection": "enabled",
"enable_js": true,
"fight_mode": true,
"is_robots_txt_managed": false,
"jsd_api_results_enabled": true,
"stale_zone_configuration": {
"optimize_wordpress": true,
"sbfm_definitely_automated": "sbfm_definitely_automated",
"sbfm_likely_automated": "sbfm_likely_automated",
"sbfm_static_resource_protection": "sbfm_static_resource_protection",
"sbfm_verified_bots": "sbfm_verified_bots",
"suppress_session_score": true
},
"using_latest_model": true
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"ai_agents": {
"anthropic_agent": "block",
"google_agent": "block",
"instinct": "block",
"muse": "block",
"openai_agent": "block"
},
"ai_bots_migration_opt_out": false,
"ai_bots_protection": "block",
"ai_search": "block",
"ai_training": "disallow",
"ai_user": "only_on_ad_pages",
"bot_preference_sync_enabled": true,
"cf_robots_variant": "policy_only",
"content_bots_protection": "disabled",
"crawler_protection": "enabled",
"enable_js": true,
"fight_mode": true,
"is_robots_txt_managed": false,
"jsd_api_results_enabled": true,
"stale_zone_configuration": {
"optimize_wordpress": true,
"sbfm_definitely_automated": "sbfm_definitely_automated",
"sbfm_likely_automated": "sbfm_likely_automated",
"sbfm_static_resource_protection": "sbfm_static_resource_protection",
"sbfm_verified_bots": "sbfm_verified_bots",
"suppress_session_score": true
},
"using_latest_model": true
}
}