Skip to content
Myra Online Help Updated · 21 Aug 2026

Description of actions for WAF rules

Each WAF rule must contain at least one action that is executed if all conditions are met.

The following subareas explain the various actions.

Allow

allow_EN

Example: Allow

The Allows action allows you to answer the request without processing by the request limiter and antibot mechanism. The WAF status AW (Allowed WAF) is set in the access log.

Block

block_EN

Example: Block

The Block action allows you to block the request. The WAF status BW (Blocked WAF) is set in the access log.

Log

log_EN

Example: Log

The Log action allows you to highlight the request in the access log. In the log, the request is marked as LW (Logged WAF). This allows you to test rules.

Modify Header

modify_header_EN

Example: Modify Header

The Modify Header action allows you to overwrite an existing header added to the request.

Add Header

add_header_EN

Example: Add Header

The Add Header action allows you to add a header to the request.

To assist with this, Myra provides variables for fingerprints, the ISO country code, or the ASN to the infrastructure of the customer.

The following Myra attributes can be used in addition to your own header values:

  • Fingerprint1: !FP!
  • Fingerprint2: !FP2!
  • Fingerprint3: !FP3!
  • Country code: !ISO!
  • Autonomous network: !SRC!

Remove Header

remove_header_EN

Example: Add Header

The Remove Header action allows you to remove headers from the request.

Regex for Removing Header Values

remove_header_value_regex_en

Example: Regex for Removing Header Values

The Regex for Removing Header Values action allows you to remove only the part of a given header that matches against the regex. Name specifies the name of the header to search in, and value specifies the regex.

CAPTCHA

captcha_en

Example: CAPTCHA

The CAPTCHA action allows you to answer the request with a CAPTCHA.

Change Upstream

change_upstream_en

Example: Change Upstream

The Change Upstream action allows you to send the request to another upstream, similar to a ProxyPass. The requested URL remains unchanged. The changed upstream must also be stored as a DNS record at Myra.

Rate Limit

rate_limit_en

Example: Rate Limit

The Rate limit action allows you to set a request limit that is independent of the domain/subdomain. The first value determines the time period in seconds, the second value the number of allowed requests. When the set request limit is reached, all further requests are blocked until the end of the defined time period. In the next time period, requests are allowed again until the limit is exceeded once more.

Score

scrore_+_en

Example: Score

The Score action allows you to assign points to parameters of a request. By default, a score is 0 and can be incremented, decremented, or multiplied. In the Name text field, you can enter one of the operators + - *. To do so, you must specify the operand in the Value text field. You can set to 0 by multiplying by 0, which is also the default score. This is useful in combination with other rules, since this value can then be considered again in subsequent WAF rules.

URI Substitution

uri_substitution_en

Example: URI Substitution

The URI Substitution action allows you to replace parts of the requested URI. Only the first match in the URI is replaced.

Set HTTP status

set_HHTP_status_1_en

Example: HTTP status

The Set HTTP Status action allows you to specify the request to be answered with an HTTP status.

Remove Query String

remove_query_en

Example: Remove Query String

The Remove Query String action allows you to remove the query string from the URL of a request.