authMaxUsernameFailedAttemptNumber block indefinitely?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlexiLaiho
    Junior Member
    • Apr 2026
    • 10

    #1

    authMaxUsernameFailedAttemptNumber block indefinitely?

    Hi,
    I have following auth config in my config-internal.php
    Code:
      'authUsernameFailedAttemptsLimitEnabled' => true,
      'authMaxUsernameFailedAttemptNumber' => 3,
      'authUsernameFailedAttemptsPeriod' => '60 seconds',
      'authUsernameFailedAttemptsDelay' => 5
    I receive many bruteforce attacks from different IPs for the same username, where each trial starts next minute, which is kinda expected, as my period for username brute is 60 secs

    Click image for larger version  Name:	image.png Views:	0 Size:	121.4 KB ID:	126280

    I don't want to decrease the failed attempts number not to make things harder for the legitimate user, and I don't want to decrease the period either, as this will not really help against bruteforce kiddies, but will significantly harden the life for legit users, who could be distracted and who sometimes do mistakes.
    Is there any way to block auth attempts for a username indefinitely after 10 consecutive TOTAL failed attempts? This pattern is highly unlikely with the legit users, and even if it happens, they can always reach me to unlock the user.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9818

    #2
    Hi Alexi,

    I'd suggest blocking such IP addresses at the web server level or using a firewall. It's considered the best practice.

    Alternatively, you can enforce an IP address whitelist in Espo (Administration > Authentication). But this solution only works if user's IP addresses are known and do not change.

    Comment

    Working...