Supported fields and operators
Load Balancing expressions support these fields:
|Name in Expression Builder||Field||Description|
The version of the HTTP protocol used. Use this field when you require different checks for different versions.
The client TCP IP address, which may be adjusted to reflect the actual address of the client by using, for example, HTTP headers such as
The absolute URI of the request.
The URI path of the request.
|URI query string|
The entire query string for the request, without the
Load Balancing expressions also support grouping symbols, which allow you to organize expressions, enforce operator precedence, and nest expressions. For examples and usage, see in the Firewall Rules documentation.
Comparison operators return
true when a value from an HTTP request matches a value defined in an expression.
This is the general pattern for using comparison operators:
<field> <comparison operator> <value>
Load Balancing expressions support these comparison operators:
|Name||Operator Notation||Supported Data Types||Example (operator in bold)|
|Value is in |
a set of values
Logical operators combine two or more expressions into a single compound expression. A compound expression has this general syntax:
<expression> <logical operator> <expression>
Each logical operator has an . The order of precedence (along with ) determines the order in which Cloudflare evaluates logical operators in an expression. The
not operator ranks first in order of precedence. For more on how Cloudflare evaluates logical operators in expressions, see in the Firewall Rules documentation.
Load Balancing expressions support these logical operators:
|Example||Order of Precedence|