# OTP lock with Keycloak

**URL:** <https://forum.keycloak.org/t/otp-lock-with-keycloak/12617>\
**Category:** Securing applications\
**Tags:** authentication\
**Created:** [December 15, 2021, 11:24am UTC](https://forum.keycloak.org/t/otp-lock-with-keycloak/12617 "2021-12-15T11:24:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pallapotu1](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pallapotu1](https://forum.keycloak.org/u/pallapotu1)\
**Post date:** [December 15, 2021, 11:24am UTC](https://forum.keycloak.org/t/otp-lock-with-keycloak/12617/1 "2021-12-15T11:24:56Z")

</div>

Is there any way to lock a user after x unsuccessful attempts of OTP in login page.

---

<div class="post-metadata">

**Author:** ![semangard](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/semangard/32/1922_2.png) [@semangard](https://forum.keycloak.org/u/semangard)\
**Post date:** [December 16, 2021, 12:24pm UTC](https://forum.keycloak.org/t/otp-lock-with-keycloak/12617/2 "2021-12-16T12:24:07Z")

</div>

Maybe have a look at built-in [Brute Force Detection](http://localhost:8080/auth/admin/master/console/#/realms/hug/defense/brute-force)
