Skip to content

Block traffic by geographical location

This example custom rule blocks requests by autonomous system number (ASN), continent, or country of origin.

  • When incoming requests match:

    FieldOperatorValueLogic
    AS Numequals131279Or
    ContinentequalsAsiaOr
    CountryequalsKorea, North

    If you are using the expression editor:
    (ip.src.asnum eq 131279) or (ip.src.continent eq "AS") or (ip.src.country eq "KP")

  • Then take action: Block

Other resources