New Inspiro AI Demo Generator — can't find the perfect demo? Describe your website and AI builds a custom one in about 2 minutes. Learn more →

Knowledge Base

Documentation

Theme Documentation



Plugin Documentation



Resources

Brute-Force Protection and Hardening

This article refers to WPBruiser

Besides checking every form submission, WPBruiser watches for login attacks in progress and can block the addresses behind them. The options live on the Security screen, together with optional lists of known attacker and proxy addresses and protection against user enumeration.


Table of Contents

  1. How attacks are detected
  2. Brute-force options
  3. What happens during an attack
  4. More hardening on the WordPress screen

How attacks are detected

WPBruiser counts the login attempts it blocks — on the WordPress login form, XML-RPC and the login forms of supported plugins. When more than 35 blocked login attempts arrive within one minute, it treats your site as being under a brute-force attack. The attack is considered over when the rate drops below 15 per minute.

When an attack starts, WPBruiser also rotates its internal secrets, so tokens a bot collected beforehand stop working, and emails you if Brute Force Attack Detected is on under WPBruiser → Notifications.


Brute-force options

Go to WPBruiser → Security. The WPBruiser Brute Force Settings box has four options:

WPBruiser Brute Force Settings
  • Automatically Block IP Addresses — during an attack, any address with more than 4 blocked logins in the last minute is added to your block list. It stays there until you remove it.
  • Prevent User Enumeration (on by default) — stops bots from discovering your usernames through /?author=N scans, the oEmbed endpoint and the WordPress REST API users endpoint. Usernames are half of a login, so hiding them makes guessing much harder.
  • Block Web Attackers IPs — rejects login attempts from addresses on a bundled list of IPs involved in brute-force attacks, cross-site scripting and SQL injection.
  • Block Anonymous Proxy IPs — rejects login attempts from addresses on a bundled list of anonymous proxies, including Tor exit nodes.

Click Save Changes after changing an option. The last two options apply to logins only; other forms are not affected.

Addresses on your allow list skip every check, so they’re never counted or blocked. Add your own IP address there before turning on automatic blocking, and you can’t lock yourself out.


What happens during an attack

While your site is under attack, a login request that fails WPBruiser’s check is stopped immediately, before WordPress loads the user, which saves your server work. Normal visitors with a valid token can still sign in. Watch the Reports screen during an attack: the spike shows up in the chart, and the addresses involved are listed under Attempts By Locations.


More hardening on the WordPress screen

The Tweaking WordPress box under WPBruiser → WordPress can hide your WordPress version, turn off XML-RPC or just its pingbacks, and remove a few header links. See Protecting WordPress Forms → Hardening tweaks.


What’s Next?

Last updated on October 17, 2026