Security module Free feature

Login attempt limiter

Locks out an IP address after a configurable number of failed login attempts, so brute force scripts stop getting free guesses.

What it does

Counts failures, then closes the door

Login attempt limiting is a Vectro security feature that locks out an IP address after a set number of failed login attempts, preventing brute force attacks on your WordPress admin.

WordPress accepts an unlimited number of login attempts by default. Nothing stops a script from trying one password after another, all day, from the same address. The login attempt limiter counts failed attempts per IP address and blocks that address once it crosses a threshold you set.

Out of the box it allows 5 failed attempts and then locks the address out for 30 minutes. You can set the threshold anywhere from 1 to 20 attempts, and the lockout anywhere from 5 minutes to 24 hours. A genuine person who mistypes a password twice never notices it exists.

Every failed attempt is also written to Vectro’s security log table with the IP address, the username tried and the time. When a lockout fires and email alerts are on, Vectro emails you the IP address, the number of attempts, the username tried and how long the lockout lasts.

Why it matters

Your login page is being tried right now

Brute force traffic against wp-login.php is constant and automated. It is not targeted at you personally – scripts sweep IP ranges looking for any WordPress install that answers. An unprotected site commonly sees hundreds to thousands of failed attempts a day, and every one of them costs you a database query, a password hash comparison, and a slice of PHP memory.

Rate limiting changes the arithmetic. A script that gets 5 guesses per half hour instead of thousands per hour is no longer a practical threat, and your server stops burning resources on traffic that was never going to succeed.

Threshold you choose
Anywhere from 1 to 20 failed attempts before a lockout fires. The default of 5 blocks scripts while leaving room for a genuine typo.
Lockout you choose
From 5 minutes to 24 hours. Thirty minutes stops most automated runs. Longer durations suit sites that see repeat offenders.
Success resets the count
A successful login from an address clears its failed-attempt count, so an occasional typo never adds up to a lockout.
Expires by itself
Lockouts clear automatically when the duration passes. There is no queue to prune and no manual unblocking step.

How to use it

Turn it on and set your limits

1
Open the Security module
In wp-admin, go to Vectro > Security. Every security feature is listed with its own toggle.
2
Toggle Login Attempt Limiter on
The feature activates immediately. Until you change anything it uses the defaults: 5 attempts, 30 minute lockout.
3
Set the attempt threshold
Choose how many failures trigger a lockout, from 1 to 20. Five is a sensible starting point for most sites.
4
Set the lockout duration
Choose how long a blocked address stays blocked, from 5 minutes to 24 hours.
5
Save, and check email alerts
Click Save Security Settings. Email Alerts, also in Vectro > Security, is on by default and emails you when a lockout fires.

Technical detail

Where the counting happens

Vectro hooks the WordPress authentication flow. Each failed attempt increments a counter for the requesting IP address in a dedicated database table, wp_vectro_lockouts (with your site’s table prefix), which Vectro creates on activation. When the counter reaches your threshold, the row gets a lockout expiry time and further logins from that address are refused until it passes.

The address comes from REMOTE_ADDR. Proxy and CDN headers are ignored unless a developer names a trusted header with the vectro_trusted_proxy_header filter, so a client cannot forge a header to dodge a lockout. On a site behind a proxy or CDN such as Cloudflare, set that filter, otherwise every visitor can appear to come from the proxy’s address. Deactivating Vectro clears every active lockout; the table itself is only removed when you delete the plugin.

Storage
A custom table, wp_vectro_lockouts (with your table prefix), one row per IP address.
IP source
REMOTE_ADDR. Proxy headers are trusted only through the vectro_trusted_proxy_header filter.
Default threshold
5 failed attempts
Default lockout
30 minutes
Threshold range
1 to 20 attempts
Lockout range
5 minutes to 24 hours
On lockout
Sends an email if Email Alerts is enabled.
On deactivation
All active lockouts are cleared.

Compatibility

Vectro detects these and steps aside

Wordfence
Vectro disables its own login limiter. Wordfence handles login rate limiting.
iThemes Security
Vectro steps aside so the two do not both count attempts.
Login Lockdown
Vectro defers. Login Lockdown keeps its own lockout rules.
Limit Login Attempts Reloaded
Vectro defers rather than running duplicate lockout logic.
All In One Security
Vectro disables its login limiter and lets All In One Security manage it.

You can override any automatic deferral from the Compatibility panel in Vectro’s dashboard if you would rather Vectro handle it.

Questions

Frequently asked

What does a login attempt limiter do in WordPress?

A login attempt limiter counts failed login attempts from each IP address and blocks that address once it passes a threshold you set. Vectro allows 5 failed attempts by default and then locks the address out for 30 minutes.

Does Vectro login attempt limiter work with Wordfence?

No – if Wordfence is active, Vectro detects it and disables its own login limiter automatically to avoid conflicts. Wordfence handles that protection instead.

How do I limit login attempts in Vectro?

Go to Vectro > Security in wp-admin, toggle Login Attempt Limiter on, then set the attempt threshold and lockout duration. The threshold can be 1 to 20 attempts and the lockout from 5 minutes to 24 hours.

Is the Vectro login attempt limiter free or Pro?

Yes, The Vectro login attempt limiter is free. It is included in the free Vectro plugin on WordPress.org with no account required.

What happens if I lock myself out of my own WordPress site?

The lockout expires automatically once the duration you configured has passed, so you regain access without any FTP or database work. Lockouts are per IP address, so you can also log in from a different network, and deactivating Vectro clears every active lockout.

Related features

Build a complete login defence

Vectro Pro adds a full login activity log and IP blocklist for deeper access control. See Pro plans

Download Vectro free on WordPress.org

27 features across Security, Performance and Maintenance. No account required, no expiry, unlimited sites.

Scroll to Top