Rule for Yandex SmartCaptcha
Written by
Updated at August 26, 2025
Set up a rule to redirect requests to SmartCaptcha for verification.
Note
If the Deny action is set for the default basic rule and the requests are sent to SmartCaptcha for verification, add a basic rule that allows requests to the CAPTCHA. The address of the allowed request matches the regular expression: /(captcha_smart.*.(css|js)|showcaptcha|checkcaptcha). Set the rule to have a higher priority than rules sending CAPTCHA requests.
Management console
- In the management console
, select the folder. - In the list of services, select Smart Web Security.
- In the left-hand panel, click
Security profiles and select the profile. -
Click
Add rule and in the window that opens:-
Enter a name for the rule, e.g.,
allow-captcha. -
Set Priority higher than that of the rules sending requests to captcha checks.
-
Enable Only logging.
-
Specify the rule settings:
- Type:
Base. - Action:
Allow. - Traffic:
On condition. - Conditions:
Request URI. - Request path:
Matches the regular expression. - Enter this expression:
/(captcha_smart.*\.(css|js)|showcaptcha|checkcaptcha).
- Type:
-
Click Add.
-