RulesetRuleRatelimit

data class RulesetRuleRatelimit(val characteristics: List<String>? = null, val countingExpression: String? = null, val mitigationTimeout: Int? = null, val period: Int? = null, val requestsPerPeriod: Int? = null, val requestsToOrigin: Boolean? = null, val scorePerPeriod: Int? = null, val scoreResponseHeaderName: String? = null)

Constructors

Link copied to clipboard
constructor(characteristics: List<String>? = null, countingExpression: String? = null, mitigationTimeout: Int? = null, period: Int? = null, requestsPerPeriod: Int? = null, requestsToOrigin: Boolean? = null, scorePerPeriod: Int? = null, scoreResponseHeaderName: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

List of parameters that define how Cloudflare tracks the request rate for this rule.

Link copied to clipboard

Criteria for counting HTTP requests to trigger the Rate Limiting action. Uses the Firewall Rules expression language based on Wireshark display filters. Refer to the Firewall Rules language documentation for all available fields, operators, and functions.

Link copied to clipboard
val mitigationTimeout: Int? = null

Once the request rate is reached, the Rate Limiting rule blocks further requests for the period of time defined in this field.

Link copied to clipboard
val period: Int? = null

The period of time to consider (in seconds) when evaluating the request rate.

Link copied to clipboard
val requestsPerPeriod: Int? = null

The number of requests over the period of time that will trigger the Rate Limiting rule.

Link copied to clipboard

Whether to include requests to origin within the Rate Limiting count.

Link copied to clipboard
val scorePerPeriod: Int? = null

The maximum aggregate score over the period of time that will trigger Rate Limiting rule.

Link copied to clipboard

Name of HTTP header in the response, set by the origin server, with the score for the current request.