Skip to content

Block traffic from specific countries

This example custom rule blocks requests based on country code using the ip.src.country field.

  • When incoming requests match:

    FieldOperatorValue
    Countryis inKorea, North, Syria

    If you are using the expression editor:
    (ip.src.country in {"KP" "SY"})

  • Then take action: Block

Other resources