# Limit number of login attempts until user gets blocked

**URL:** <https://forum.xwiki.org/t/limit-number-of-login-attempts-until-user-gets-blocked/3432>\
**Category:** Help / Discuss\
**Tags:** login\
**Created:** [August 9, 2018, 12:41pm UTC](https://forum.xwiki.org/t/limit-number-of-login-attempts-until-user-gets-blocked/3432 "2018-08-09T12:41:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwe](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@mwe](https://forum.xwiki.org/u/mwe)\
**Post date:** [August 9, 2018, 12:41pm UTC](https://forum.xwiki.org/t/limit-number-of-login-attempts-until-user-gets-blocked/3432/1 "2018-08-09T12:41:06Z")

</div>

Hi,

is there any chance to configure xwiki to limit the number of failed login attempts within a certain time-window and block a user once the limit is reached?

Thanks

Matthias

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 9, 2018, 3:36pm UTC](https://forum.xwiki.org/t/limit-number-of-login-attempts-until-user-gets-blocked/3432/2 "2018-08-09T15:36:23Z")

</div>

There is nothing like this in the standard XWiki authenticator right now. You should probably create a “new feature” issue on [Loading...](https://jira.xwiki.org/browse/XWIKI).

In the meantime I guess it should not be too hard to implement in a custom authenticator extending the standard authenticator. See [https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Authentication/#HCustomAuthentication](https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Authentication/#HCustomAuthentication).
