security

Brute-Force Attacks Explained: What They Are and How to Stop Them

Published 2026-08-27 · 3 min read

Why Brute-Force Attacks Are So Common

Brute-forceAn attack that rapidly tries many username and password combinations until one works. attacks are cheap and easy to automate: a bot can attempt thousands of username and password combinations against a login page with no human involvement at all. Because it costs the attacker almost nothing to try, every publicly reachable login page on the internet gets probed eventually, regardless of how small or unremarkable the site is.

Brute-Force vs. Credential Stuffing

These are often lumped together, but they work differently. A classic brute-force attack tries many password guesses, common passwords, leaked password lists, or simple variations, against one specific account. Credential stuffingAn attack that reuses username/password pairs leaked from other breaches to break into accounts. instead takes username and password pairs already leaked from unrelated data breaches elsewhere and tries them here, betting that the same person reused a password across multiple sites. Both are automated, and both are defeated by largely the same defenses.

What's Actually at Risk

Every login on your hosting account is a potential target: WordPress admin access, cPanelA popular web-hosting control panel for managing sites, email, databases, and files through the browser. and WHMWebHost Manager — the panel a host or reseller uses to create and manage multiple cPanel accounts on a server., FTP, and email accounts all get probed. Gaining access to any single one is often enough to cause real damage, an attacker with FTP or cPanel access doesn't need to guess the WordPress password separately.

Defense 1: Strong, Unique Passwords

This is the most basic layer: a long, unique password for every account resists simple guessing far better than a short or reused one. It's necessary but not sufficient on its own, since a password can still be leaked from somewhere else entirely.

Defense 2: Two-Factor Authentication

Two-factorTwo-factor authentication (2FA) — a second login step, like a phone code, required on top of your password. authentication means a correct password alone isn't enough to log in; a second, time-limited code is also required. This defeats brute-force and credential-stuffing attacks even when the password itself is compromised. It's available both inside WordPress, through the security plugins covered in Wordfence and Other WordPress Security Plugins, and separately for cPanel and WHM logins directly.

Defense 3: Login Rate Limiting

Rate limiting blocks further login attempts from a source after a set number of failures within a short window. This is exactly what cPanel's built-in cPHulkcPanel's built-in brute-force protection, which blocks an IP after repeated failed logins. protection does at the server level, covered in cPanel Security Features Explained, and what most WordPress security plugins do at the application level. Running both together covers logins across your entire hosting account, not just WordPress itself.

Defense 4: Avoiding Predictable Usernames

A brute-force attack has to guess both the username and the password. Using "admin" as a WordPress username, for example, removes half of that guessing work for the attacker. A less predictable username adds a small but real layer of difficulty on top of everything else.

Putting It Together

No single defense here is bulletproof alone, but strong passwords, two-factor authentication, and rate limiting at both the server and application level together make brute-force attacks fail almost every time they're attempted. See WordPress Security Best Practices for how this fits into the full security picture.

FAQs

What is a brute-force attack?+

A brute-force attack is an automated attempt to guess a username and password by trying large numbers of combinations, usually common passwords, leaked password lists, or simple variations, until one works.

What's the difference between brute-force and credential stuffing?+

A brute-force attack tries many password guesses against one account. Credential stuffing instead tries username and password pairs already leaked from other, unrelated breaches, betting that people reuse passwords across sites.

Which accounts are usually targeted?+

Anything with a login: WordPress admin accounts, cPanel and WHM, FTP, and email accounts are all common targets, since gaining access to any one of them is often enough to cause real damage.

Does a strong password alone stop brute-force attacks?+

It helps significantly, but two-factor authentication and login rate limiting add protection even if a password is somehow guessed or leaked, which a password alone can't provide.

What is login rate limiting?+

Login rate limiting blocks further attempts from a source after a set number of failed logins in a short period, which stops automated brute-force tools from working through large password lists uninterrupted.

How do I know if my site has been targeted by brute-force attempts?+

Security plugins and cPanel's cPHulk both log failed login attempts, so a high volume of failures from unfamiliar sources is a clear sign, even if none of them succeeded.

Related reading

Chat on WhatsApp