Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Captcha counter increase

hey

i am using the build in captcha feature, and i have configured a Macro with a loop for my 2 factor authentication. the macro loop is configured for 3 loops and than the access policy reaches to the access policy deny. from my research i have seen that the counter for the captcha only increases when it reaches the policy deny. how can i increase the counter manually using iRule probably using event agent before the Macro loop terminal?

thanks

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Use the ISTATS::incr command

eg

ISTATS::incr "ltm.virtual [virtual] c captcha_total"

This will attach the stat to the virtual server, view it using tmsh show ltm virtual <VS name>

1
Comments on this Answer
Comment made 2 months ago by minow123 62

hey

i have configured what you suggested but i think you missed understood me. i don't need to count how much the capthca showed for the user, i want the captcha to be showed to the user after 3 tries of entering the wrong username & password.

if i configure the AD Auth agent to "Max Logon Attempts Allowed" = 3 and the "Display CAPTCHA After Number of Logon Attempts Equals " = 3, than i don't get the captcha for the user after 3 tries but after 9 attempts.

i want the flow to be like this 1) user lands on login page 2) if last login failed show login page redirect to login page and show the failed logon message 3) if user failed to login 3 times show captcha

thanks

0