For an example of setting up brute-force attack detectors “Action\Source/Target”, we use the rule configured in the section 25.1 section, which blocks brute force attacks on the login field for the login\password entry form on the application (see Figure 243) from one IP address.
To do this you need:
Create an action for the login/password entry form (the creation of actions is described in section section 15).
The created action for the password entry form is shown in Figure 244.
Create a target in the login/password field (creating a target is described in section section 14). The created target for the login input field is shown in Figure 253.

Figure 253 – Setting up a target for the Username field
Create a source on the IP address field (creating a source is described in the section 13 section). The created source for the “src_ip” field is shown in Figure 254.

Figure 254 – Source on the “src_ip” field
Create a brute force attack detector “Action\Source\Target” (creating a brute force attack detector
“Action\Source” is described in section section 16.1Error! Reference source not found.). Next, you need to configure the brute force attack detector to 5 RPM (5 requests per minute), i.e. if a user enters more than 5 different username values for the login form from one IP address, then the next similar request will be blocked by the brute force attack detector. Manual settings for the brute force attack detector for 5 RPM are shown in Figure 255.

Figure 255 – Manually setting parameters for the brute force attack detector
Create a rule (the creation of rules is described in the section 21 section), as a result of which requests will be blocked depending on the settings for the brute force attack detector. The anomaly setup for the brute force attack detector is shown in Figure 256.

Figure 256 – Configuring an anomaly rule to detect brute-force attacks
For the rule, you need to select the goal - checking the web application, as well as the protected application itself (see Figure 257).

Figure 257 – Goal with the specification class web application verification
When editing an action for a rule, you must select the transaction blocking action (see Figure 258).

Figure 258 – Editing an action for a rule
The configured rule for blocking requests that attempt to brute-force the login form is shown in Figure 259.

Figure 259 – Configuring a rule to block search of the username field from one IP