Bot Management
resource cloudflare_bot_management
optional
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.
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.
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.
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.
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
cloudflare_bot_management
resource "cloudflare_bot_management" "example_bot_management" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
ai_bots_migration_opt_out = false
ai_bots_protection = "block"
aisearch = "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
}
data cloudflare_bot_management
computed
Temporary migration flag tracking zones opted out of AI bots managed-rule updates.
Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.
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.
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.
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.
Super Bot Fight Mode (SBFM) action to take on definitely 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.
Whether to disable tracking the highest bot score for a session in the Bot Management cookie.
cloudflare_bot_management
data "cloudflare_bot_management" "example_bot_management" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}