Bot Management Args
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>'
Constructors
Properties
Enable rule to block AI Scrapers and Crawlers. Available values: "block", "disabled".
Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.
Enable rule to punish AI Scrapers and Crawlers via a link maze. Available values: "enabled", "disabled".
Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.
Whether to optimize Super Bot Fight Mode protections for Wordpress.
Super Bot Fight Mode (SBFM) action to take on definitely automated requests. Available values: "allow", "block", "managed_challenge".
Super Bot Fight Mode (SBFM) action to take on likely automated requests. Available values: "allow", "block", "managed_challenge".
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.
Super Bot Fight Mode (SBFM) action to take on verified bots requests. Available values: "allow", "block".
Whether to disable tracking the highest bot score for a session in the Bot Management cookie.