Skip to main content

Brute Force Lockout

Vasyl MartyniukLess than 1 minute

Brute Force Lockout

By enabling the Brute Force Lockout option, AAM will count the number of login attempts per IP address. If there are 20 failed consequent attempts, AAM does not allow further login requests for the next 20 minutes.

The number of attempts and pausing timeframe are configurable with ConfigPress as follows.

[aam]
; Set number of login attempts
service.secure_login.login_attempts = 20
; Set login lockout time. Any valid Date Time Format.
service.secure_login.time_window = "20 minutes"

FYI!

Under the hood, the brute force lockdown feature uses the WordPress transientsopen in new window to temporarily store counters in the DB. It is a very primitive, yet, effective functionality. However, if your website is the subject of constant attacks, we strongly advise using a hosting provider that offers a WAF (Web Application Firewall) layer that sits in front of your WordPress website instance or your load balancer.