Guides › Hosting, domain & email › Security & hacks

Credential Stuffing Attacks on Customer Logins: Mitigation

Stuffing.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Security and hacking

Credential stuffing means attackers try email and password pairs leaked from other sites on your login page. If your customers reuse passwords, some will work.

1Spot the signs2Rate limit logins3Add a captcha4Offer two-factor authentication5Block bad sources6Notify users7Check passwords against breachesFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Spot the signs

Illustration for Step 1: Spot the signs

Many failed logins from many IPs, spikes in login traffic, and customers reporting activity they did not do.

Step 2: Rate limit logins

Illustration for Step 2: Rate limit logins

Limit attempts per IP and per account, for example 5 per 10 minutes, and add short delays.

Step 3: Add a captcha

Illustration for Step 3: Add a captcha

Show a captcha after a few failed attempts.

Step 4: Offer two-factor authentication

Illustration for Step 4: Offer two-factor authentication

A second step defeats stolen passwords.

Step 5: Block bad sources

Illustration for Step 5: Block bad sources

Use a firewall or Cloudflare rules for known abusive networks.

Step 6: Notify users

Illustration for Step 6: Notify users

Email customers on new-device logins and password changes.

Step 7: Check passwords against breaches

Illustration for Step 7: Check passwords against breaches

Reject passwords found in public leak lists.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.