Skip to content
Myra Online Help Updated · 21 Aug 2026

Description of conditions for WAF rules

A condition within a WAF rule consists of three parts.

  • The part of the request that is to be analyzed, e.g., the user agent header.
  • A comparison parameter (so-called operations).
  • A value that must be included in the query for the condition to be met.

Each WAF rule can contain several conditions, all of which must be met in order to trigger actions. This corresponds to a logical AND. A logical OR can be achieved with several WAF rules.

For all conditions, the following relational operators are available to adjust the match accuracy:

Name Description
IREGEX Pattern matching using case insensitive regex (upper and lower case are not considered)
Regex Pattern matching using case sensitive regex (upper and lower case are considered)
EXACT String matching using the whole string verbatim (not for Score and Country)
EQUALS String matching using the whole string verbatim (only for Score and Country)
SUFFIX String matching at the end
PREFIX String matching from the beginning
NOT IREGEX Query for non-matching patterns using case-insensitive regex
NOT REGEX Pattern not matching using case sensitive regex
NOT EXACT String not matching using the whole string verbatim
(not for Score and Country)
NOT EQUALS String not matching using the whole string verbatim
(only for Score and Country)
NOT SUFFIX String not matching at the end
NOT PREFIX String not matching from the beginning

Note

PCRE (Perl Compatible Regular Expressions) is used for the REGEX options.

The following areas describe the individual conditions.

Custom header

custom-header_EN

Example: Custom header

The Custom header condition allows you to specify a freely definable key value pair for a header for matching.

Host Header

host-header_EN

Example: Host Header

The Host header condition allows you to match a specific value within the host header.

User Agent Header

user-agent-header_EN

Example: User Agent Header

The User Agent Header condition allows you to match the content of the User-Agent header.

Accept header

accept-header_EN

Example: Accept Header

The Accept header condition allows you to match to the requested Content-Type header (MIME type).

Accept Encoding Header

accept-encoding-header_EN

Example: Accept Encoding Header

The Accept Encoding Header condition allows you to match to the requested compression method.

Country

country_EN

Example: Country

The Country condition allows you to select one or more countries from a drop-down list for GEO-IP blocking.

Continent

continent_EN

Example: Continent

The Continent condition allows you to select one or more continents from a drop-down list for GEO-IP blocking.

cookie_EN

Example: Cookie

The Cookie condition allows you to specify a freely definable key value pair for a cookie for matching.

Path

path_EN

Example: Path

The Path condition allows you to match a freely definable path.

Type of request (HTTP method)

request-method_EN

Example: Request Method

The Request Method condition allows you to match to the HTTP method used.

Query String Argument

query-string-argument_EN

Example: Query String Argument

The Query String Argument condition allows you to specify a freely definable key value pair for matching.

Post Argument

post-argument_EN

Example: Query String Argument

The Post Argument condition allows you to match to a key value pair of a POST

Query String

query-string_EN

Example: Query String

The Query String condition allows you to match a freely definable query string.

Query string decoded

query-string-decoded_EN

Example: Query String Decode

The Query String Decoded condition allows you to match against the URL-decoded query string.

Note

Query String Decode blocks everything as soon as no query string is applied. Please check whether this is the case for you before using this condition.

Fingerprint

fingerprint-2_EN

Example: Fingerprint

The Fingerprint condition allows you to define geo-blocking, AS blocking (Autonomous System), or Managed Myra fingerprint blocking.

Note

The source AS network originates from a GeoIP database and may lead to inaccurate values in rare cases.

Remote IP Address

remote-ip-address_EN

Example Remote IP address

The Remote IP address condition allows you to match to the client IP address. This works with both IPv4 and IPv6 addresses. This works with both IPv4 addresses and IPv6 addresses.

Score

score_EN

Example: Score

The Score condition allows you to match to points assigned by the scoring rules (see Section Description of actions for WAF rules).