Skip to content

The attack score helps identify variations of known attacks and their malicious payloads.

This example custom rule blocks requests based on country code (ISO 3166-1 Alpha 2 format), from requests with an attack score lower than 20. For more information, refer to WAF attack score.

  • When incoming requests match:

    FieldOperatorValueLogic
    Countryis inChina, Taiwan, United Kingdom, United StatesAnd
    WAF Attack Scoreless than20

    If you are using the expression editor:
    (ip.src.country in {"CN" "TW" "US" "GB"} and cf.waf.score lt 20)

  • Then take action: Block