Basic Concepts

최신 업데이트:2026-02-05 11:02:10

Reading time: About 12 minutes

This page is a complete reference for the Match Conditions field used across all security policies.

General Information

Match conditions are used to precisely define the scope of a rule. Multiple conditions can be combined using the following logic:

  • AND (All conditions must be met): The request must satisfy all conditions simultaneously.
  • OR (Any condition met): The rule takes effect when the request satisfies any one of the conditions.

Available Field Types

Request Path (URI Path)

Operator Description Example
Equals Exact match of the specified path /login
Contains The path contains the specified string /api
Starts with Prefix match of the path /admin/
Ends with Suffix match of the path .php
Regex Match Match the path using a regular expression ^/api/v[0-9]+/
Not Equals Exclude the specified path Any path other than /health

Performance tip: Regex matching consumes more computing resources than prefix or contains matching. Use prefix matching unless regex is necessary.

HTTP Method

Supported methods: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS

Client IP

Format Example
Single IP 1.2.3.4
CIDR Range 1.2.3.0/24
IP Range 1.2.3.1-1.2.3.100

Note: If the request is forwarded through a proxy or load balancer, the system uses the first IP in the X-Forwarded-For header as the client IP. Make sure your origin server is properly configured to pass this header.

HTTP Header

Operator Description
Exists The request contains the specified header (any value)
Equals The header value matches exactly
Contains The header value contains the specified string
Regex Match Match the header value using a regular expression
Not Exists The request does not contain the specified header

User-Agent

Behaves the same as the HTTP Header field, but is a shortcut specifically for the User-Agent header.

Operator Example
Contains Googlebot
Equals Mozilla/5.0 ...
Regex Match ^python-requests/
Is Empty

Cookie

Operator Description
Cookie Name Exists The request carries a cookie with the specified name
Cookie Value Equals The value of the specified cookie matches exactly
Cookie Value Contains The value of the specified cookie contains a specific string

Referer

Behaves the same as the HTTP Header field, but is a shortcut for the Referer header. Supports operators such as Equals, Contains, and Is Empty.

Query String

Matches parameters in the URL query string:

  • Parameter name equals: keyword
  • Parameter value contains: SELECT

Use when: A WAF rule generates false positives for legitimate requests with specific query parameters. Use query string conditions to precisely define the exception scope.

URI

The difference between URI and the Request Path: URI includes query parameters, while the path does not.

Example Path URI
https://example.com/search?q=test&page=1 /search /search?q=test&page=1

Supported operators: Equals, Not Equals, Contains, Does Not Contain, Starts with, Ends with, Wildcard Match, Wildcard Not Match, Regex Match, Regex Not Match

Case sensitivity: The Equals and Not Equals operators are case-sensitive; Contains, Starts with, Ends with, Wildcard, and Regex operators are case-insensitive.

Geo Location

Determines the request source region based on the IP geolocation database. Used for IP/Geo firewall policies.

Supported operators: Equals, Not Equals

Status Code

Matches or excludes specific HTTP response status codes. Only response-phase status codes are evaluated.

Supported operators: Equals, Not Equals

Use when: In rate limiting, you can set limits based on specific error response codes (e.g., 404, 5xx). In custom rules, you can trigger actions based on the response status code.

Client Group

Matches or excludes requests belonging to specific client groups. Client groups are automatically classified by the platform based on request characteristics.

Supported operators: Equals, Not Equals

ASN (Autonomous System Number)

Matches requests based on the Autonomous System Number of the source IP. Useful for bulk actions targeting IP segments of specific ISPs, cloud providers, or data centers.

Supported operators: Equals, Not Equals

Typical use cases: Blocking IP segments from specific cloud service providers (e.g., AWS, Alibaba Cloud, etc.), or allowing traffic from a specific enterprise leased line ASN.


Special Fields (Advanced Usage)

Field Description Typical Use Case
JA3 Fingerprint TLS handshake fingerprint used to identify specific TLS clients Identifying attackers using specific tools
Request Body Matches the content of POST request bodies Identifying specific malicious payloads
Response Status Code Triggers rules based on the server response code Counting specific error responses in rate limiting
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.