Skip to main content
InMotion Cloud
BLOG · SECURITY

Rate Limits for Credential Stuffing and Checkout Bots

Credential stuffing & checkout bots look like customers, firewalls let them in. The rate limits to set on login, cart & checkout before peak traffic.

Updated November 24, 2026 by Danish Rumane

6 Minutes to Read

Login and checkout forms each protected by a rate limit throttle.

Credential stuffing and checkout bots have one thing in common: they look like customers. They arrive on port 443, request ordinary pages and fill in ordinary forms. Firewalls let them through by design, and DDoS filtering rarely notices, because the volume can stay well below anything that looks like a flood.

What stops them is limiting how fast anyone can do the sensitive things: log in, add to cart, apply a coupon, pay. This guide covers how these attacks work, which rate limits to set before peak traffic and how to avoid locking out real customers. If you are reviewing access more broadly, our piece on identity and access management covers the platform side, and the glossary explains firewall rules.

How credential stuffing works

Attackers take username and password pairs leaked from other sites and try them against yours, at scale, using automated tools. Because many people reuse passwords, a small share of attempts succeed. Those accounts get used for fraud: stored cards, loyalty points, gift balances or simply resold.

The traffic is spread across many addresses, often residential proxies, so no single address looks busy. Each address might try a handful of logins and move on. The signal is in the totals: many failed logins across many accounts, from addresses that have never logged in before.

A compromised customer account is a fraud problem. A compromised admin account is much worse, and as one of our earlier stories shows, a single compromised account can turn expensive very quickly.

How checkout bots work

The OWASP Automated Threats project names several attacks that target the shopping journey. Three matter most on peak day:

  • Carding: bots test stolen card numbers with small purchases or authorisations to see which ones work. The signs are many small payment attempts with high decline rates.
  • Scalping: bots buy limited stock faster than people can, to resell it.
  • Denial of inventory: bots add items to carts and hold them without buying, so real customers see them as sold out.

The rate limits to set

The principle is to limit each sensitive action by more than one key, because attackers can rotate any single one.

Per account. Limit failed login attempts on one account over a period of time. NIST's digital identity guidelines cap consecutive failed attempts on one authenticator at no more than 100; most sites set a far lower threshold, combined with growing delays.

Per address or network. Limit login attempts and failed logins per IP address and per address range. Attackers rotate addresses, so this catches the clumsy ones and raises the cost for the rest.

Per session or device. Limit add-to-cart, coupon and payment attempts per session, and require a valid session before checkout.

Per endpoint, overall. Set a ceiling on total failed logins and total payment declines per minute across the whole site, based on your normal baseline. A sudden jump is the clearest sign of a distributed attack.

Per customer at checkout. Purchase limits on high-demand items, and cart holds that expire after a set time, blunt scalping and denial of inventory.

Grid showing which rate limit keys to apply to login, add to cart, coupon and payment actions, with login and payment limited by account, address, session and site-wide baseline.

For login and payment, check the account, IP range and session alongside site-wide activity. A surge across the site can stand out even when each address looks quiet.

Set the numbers from your own traffic, not from a template. Pull last year's peak logins, cart adds and payments per minute, and set limits comfortably above what real customers did.

If you would rather engineers helped set and test these limits, it is part of the managed services included on every InMotion Cloud plan.

How to respond when a limit is hit

Blocking outright is only one option, and often not the best first one.

Slow down. Add a growing delay after each failure. Real users barely notice; automated tools lose most of their speed.

Challenge. Ask for a challenge or an extra verification step once a limit is reached.

Block. Block addresses or sessions that keep going after being slowed and challenged.

Do not confirm which accounts exist. Show the same error for a wrong password and an unknown email address, so attackers cannot use your login form to check their lists.

Avoid hard lockouts on customer accounts. Locking an account after a few failures lets an attacker lock out real customers on purpose. Delays and challenges are safer.

Alongside rate limits, two controls cut credential stuffing at the source: checking new passwords against known breached lists, and offering multi-factor authentication, especially for admin accounts.

Escalation ladder for rate limit responses, moving from normal traffic to growing delays, then a challenge, then a block, with the same login error shown throughout.

Start with a delay and add verification if failures continue. Keep the login error the same for a wrong password and an unknown email address.

Where to enforce rate limits

At the edge. A CDN or bot protection service in front of your site can apply limits and challenges before traffic reaches you. Our article on a CDN or bot protection service covers when that makes sense.

At the load balancer or web server. Most web servers and every load balancer worth using can rate limit by address and path. For example, in nginx:

limit_req_zone $binary_remote_addr zone=login:10m rate=10r/m;

applied to the login location with limit_req zone=login burst=5;. Treat this as a starting point, not a recommendation for your traffic.

In the application. Per-account and per-session limits need to live here, because only the application knows which account and session a request belongs to.

With your payment provider. Most payment providers offer fraud screening and 3-D Secure. Turn on what they offer before peak day rather than after a carding run.

Request path showing where each type of rate limit is enforced, from challenges at the edge to per-address limits at the load balancer, per-account limits in the application and fraud screening at the payment provider.

The edge can challenge a request before it reaches the site. The application can recognise the account and session, while the payment provider checks the transaction for fraud.

Test before the freeze

Turn the limits on in monitoring-only mode first, if your tools allow it, and watch what they would have blocked. Then enforce them, run a quick test of your own login and checkout flow, and make sure your support team knows what a customer who hits a limit will see. All of this belongs before your change freeze, not during it.

Where InMotion Cloud fits

DDoS filtering on every InMotion Cloud plan stops floods, but credential stuffing and checkout bots are designed to stay below that radar. On InMotion Cloud, you can apply rate limits at your own load balancers and web servers, and our engineers can help you set and test them before peak day.

Bot challenges and edge rate limiting are usually handled through a CDN or bot protection service in front of your site.

What stays with you: per-account limits and login behaviour in your application, and the fraud settings with your payment provider.

Summary

Credential stuffing and checkout bots pass firewalls and DDoS filtering because they look like customers. Rate limit login, cart, coupon and payment by account, address, session and site-wide baseline. Slow down and challenge before you block, avoid hard lockouts and never reveal which accounts exist. Set it all before the freeze.


Not sure your login and checkout can tell a customer from a bot?

InMotion Cloud engineers will help you set and test rate limits before peak traffic.


Frequently asked questions

What is credential stuffing? An attack that tries username and password pairs leaked from other sites against your login, using automation, to take over accounts where people reused passwords.

Does a firewall stop credential stuffing? No. The traffic arrives on your web ports like normal visitors. Rate limits, breached-password checks and multi-factor authentication do the work.

How many failed logins should trigger a lockout? NIST caps consecutive failures at no more than 100 per authenticator. Most sites use a much lower threshold with growing delays, and avoid hard lockouts that attackers can abuse.

How do I stop checkout bots? Rate limit add-to-cart and payment attempts per session and customer, expire cart holds, set purchase limits on high-demand items and turn on your payment provider's fraud tools.


Danish Rumane writes about hosting and cloud technology with a focus on what it means for businesses. His perspective draws on more than a decade in marketing, building brands and creating content across industries.

Read more from Danish Rumane
Share this Article
RELATED RESOURCES

Let’s map your infrastructure to the right plan

A free 30-minute call with our cloud team. We review your current environment and show you exactly what a move to InMotion Cloud would look like: timeline, architecture, and cost.

Compare plans