Blocking requests by geolocation

To block requests by geolocation you need to:

  1. Create a rule (the creation of rules is described in the section 21 section), where the source has the transaction specification class “Check user country” (see Figure 267). In the specification editing section, you must also indicate the country whose transactions will be blocked by the corresponding rule. It is also possible to use the negation of the condition. In this example, the goal is to block all requests not from Kazakhstan, so you should use a negation of the condition.

image391

Figure 267 – Source with specification class checking user country

  1. For the rule, you need to select the goal - checking the web application, as well as the protected application itself (see Figure 268).

image392

Figure 268 – Goal with the specification class web application verification

  1. When editing an action for a rule, you must select the transaction blocking action (see Figure 269).

image393

Figure 269 – Editing an action for a rule

The configured rule for blocking requests not from Kazakhstan is shown in Figure 270.

image394

Figure 270 – Rule for blocking requests not from Kazakhstan