BotManagement

class BotManagement : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleBotManagement = new cloudflare.BotManagement("example_bot_management", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
aiBotsProtection: "block",
crawlerProtection: "enabled",
enableJs: true,
fightMode: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_bot_management = cloudflare.BotManagement("example_bot_management",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
ai_bots_protection="block",
crawler_protection="enabled",
enable_js=True,
fight_mode=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleBotManagement = new Cloudflare.BotManagement("example_bot_management", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
AiBotsProtection = "block",
CrawlerProtection = "enabled",
EnableJs = true,
FightMode = true,
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewBotManagement(ctx, "example_bot_management", &cloudflare.BotManagementArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
AiBotsProtection: pulumi.String("block"),
CrawlerProtection: pulumi.String("enabled"),
EnableJs: pulumi.Bool(true),
FightMode: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.BotManagement;
import com.pulumi.cloudflare.BotManagementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleBotManagement = new BotManagement("exampleBotManagement", BotManagementArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.aiBotsProtection("block")
.crawlerProtection("enabled")
.enableJs(true)
.fightMode(true)
.build());
}
}
resources:
exampleBotManagement:
type: cloudflare:BotManagement
name: example_bot_management
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
aiBotsProtection: block
crawlerProtection: enabled
enableJs: true
fightMode: true

Import

$ pulumi import cloudflare:index/botManagement:BotManagement example '<zone_id>'

Properties

Link copied to clipboard
val aiBotsProtection: Output<String>?

Enable rule to block AI Scrapers and Crawlers. Available values: "block", "disabled".

Link copied to clipboard
val autoUpdateModel: Output<Boolean>?

Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.

Link copied to clipboard

Enable rule to punish AI Scrapers and Crawlers via a link maze. Available values: "enabled", "disabled".

Link copied to clipboard
val enableJs: Output<Boolean>?

Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.

Link copied to clipboard
val fightMode: Output<Boolean>?

Whether to enable Bot Fight Mode.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Whether to optimize Super Bot Fight Mode protections for Wordpress.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Super Bot Fight Mode (SBFM) action to take on definitely automated requests. Available values: "allow", "block", "managed_challenge".

Link copied to clipboard

Super Bot Fight Mode (SBFM) action to take on likely automated requests. Available values: "allow", "block", "managed_challenge".

Link copied to clipboard

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.

Link copied to clipboard
val sbfmVerifiedBots: Output<String>?

Super Bot Fight Mode (SBFM) action to take on verified bots requests. Available values: "allow", "block".

Link copied to clipboard

A read-only field that shows which unauthorized settings are currently active on the zone. These settings typically result from upgrades or downgrades.

Link copied to clipboard

Whether to disable tracking the highest bot score for a session in the Bot Management cookie.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

A read-only field that indicates whether the zone currently is running the latest ML model.

Link copied to clipboard
val zoneId: Output<String>

Identifier