Bot Management
resource cloudflare_bot_management
optional
Enable rule to block AI Scrapers and Crawlers. Please note the value only_on_ad_pages is currently not available for Enterprise customers.
Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.
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.
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_protection = "block"
cf_robots_variant = "policy_only"
crawler_protection = "enabled"
enable_js = true
fight_mode = true
is_robots_txt_managed = false
}
data cloudflare_bot_management
computed
Enable rule to block AI Scrapers and Crawlers. Please note the value only_on_ad_pages is currently not available for Enterprise customers.
Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.
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.
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"
}