# Stop login attacks on your WordPress sites

> Released October 26, 2026

Before, login protection used WP Fail2Ban. Now **Login Protection** on a WordPress site's **Security** page installs **BetterShield** instead. It blocks repeated failed logins and also bans the attacker's network at your server firewall for 15 minutes.

**Who it's for:** WordPress site owners and agencies.

-   **Blocks attackers, not Cloudflare.** An attacker can't keep trying from the same network block. BetterShield trusts Cloudflare's visitor IP only when the request really comes from Cloudflare, so Cloudflare edges are never banned.
-   **Opt-in per site.** Nothing is installed until you turn it on.
-   **Free switch from WP Fail2Ban.** Sites that use WP Fail2Ban keep working and show a **Switch to BetterShield** notice. Turn on the switch on the **WP Fail2Ban & Login Protection** card. xCloud removes WP Fail2Ban, then installs BetterShield, free.
-   **Strict by default.** Every protection starts on. You can turn each one on or off from the site's Security page:
    -   the failed sign-in limit
    -   the bot and proof-of-work checks
    -   comment, password reset and registration protection
    -   common usernames
    -   public user listing
    -   pingbacks
-   **Extra hardening when you turn it on.** BetterShield also:
    -   turns off the dashboard file editor
    -   adds security headers
    -   hides the WordPress version
    -   stops uploads folders from listing their files
    -   tightens `wp-config.php` permissions where needed
    -   moves an `http://` site address to `https://` when the site has a working certificate
-   **Requirements.** BetterShield needs WordPress 6.7 and PHP 8.0 or newer.
-   **A cleaner Security page.** All of a site's security settings now live under one **Security** menu. Each card has an on/off switch in its header.

[Set up BetterShield login protection](/docs/set-up-bettershield-login-protection-in-xcloud/)
