Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How does the “Contains all” condition work in custom WAF rules?

The Contains all field adds content conditions to a custom rule. A rule with tokens only matches when every token appears somewhere in the request. It is in Aegisify WAF → WAF Settings → Custom Rules.

How to enter tokens

  • Put one token per line.
  • Tokens are plain text (not patterns) and are matched without regard to upper or lower case.
  • The rule matches only if all tokens are present. If any one is missing, the rule does not match.
  • Leave the field empty when the path and method alone define the rule.

Example

A rule on /wp-admin/admin-ajax.php with method POST and these tokens:

action=export_users
format=csv

matches only AJAX requests that try to export users as CSV, and ignores all other AJAX traffic on that URL.

Writing good tokens

  • Use specific, stable strings, such as an action name or parameter, not common words that appear in normal pages.
  • Avoid values that change per request (timestamps, nonces).
  • Test the rule with Log before switching it to Block.

Need pattern matching instead?

If a literal token cannot describe the request, Pro installations can add regex conditions. See Regex conditions.

Related: Path pattern matching, Rule actions.

2026-12-01T03:50:57+00:00January 12th, 2026||

Find this article interesting, please share.