Cloudflare 中文文档
DDoS Protection
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

JSON objects

This page contains examples of the JSON objects used in the API.

​​ Prefix

​​ Prefix in allowlist

The prefix field can contain an IP address or a CIDR range.

​​ SYN flood rule or out-of-state TCP rule

The scope field value must be one of global, region, or datacenter. You must provide a region code (or data center code) in the name field when specifying a region (or datacenter) scope.

The rate_sensitivity and burst_sensitivity field values must be one of low, medium, or high.

​​ Filter

The expression field is a Rules language expression up to 8,192 characters that can include the following fields:

  • ip.src
  • ip.dst
  • tcp.srcport
  • tcp.dstport

The mode value must be one of enabled, disabled, or monitoring.