# Detect attack in progress or failed login count from a rule

**URL:** <https://community.auth0.com/t/detect-attack-in-progress-or-failed-login-count-from-a-rule/36120>\
**Category:** Get Help\
**Tags:** rules\
**Created:** [January 10, 2020, 2:29pm UTC](https://community.auth0.com/t/detect-attack-in-progress-or-failed-login-count-from-a-rule/36120 "2020-01-10T14:29:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![francesco.venica](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/francesco.venica/32/13023_2.png) [@francesco.venica](https://community.auth0.com/u/francesco.venica)\
**Post date:** [January 10, 2020, 2:29pm UTC](https://community.auth0.com/t/detect-attack-in-progress-or-failed-login-count-from-a-rule/36120/1 "2020-01-10T14:29:29Z")

</div>

Hello,

I would like to detect if an attack is in progress or the count of failed login from a rule (without need to use external services), is this possible somehow?

many thanks  
Francesco

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 10, 2020, 10:45pm UTC](https://community.auth0.com/t/detect-attack-in-progress-or-failed-login-count-from-a-rule/36120/2 "2020-01-10T22:45:10Z")

</div>

Hi @francesco.venica,

Welcome to the Auth0 Community Forum!

As of right now, it does not look possible to count the failed login attempts in a rule. Rules run on _success_, which would make counting failed logins not a possibility there, even when using your own logic.

The best thing I can recommend is our anomaly detection features:

> **[Brute-Force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection)**
>
> Learn how to brute-force protection works in Auth0 and how to configure responses.

You can use this tool to alert administrators and users.

If you would like to submit a feature request for a more customizable solution we would love to hear more about your use case and needs on our [feedback](https://auth0.com/feedback) page.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 25, 2020, 2:45am UTC](https://community.auth0.com/t/detect-attack-in-progress-or-failed-login-count-from-a-rule/36120/4 "2020-01-25T02:45:19Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
