Founding offerThe first 10 online stores pay $9 a month instead of $15, for as long as they stay.Founding offer: $9 a month instead of $15 for the first 10 stores.Claim yours
Ropeline Check my site

Bots guessing WooCommerce coupon codes: how to spot it and stop it

A guide for store owners. Updated October 17, 2026. Settings are named as in WooCommerce 11.

A coupon box answers every guess straight away: this code works, or this one doesn't exist. WooCommerce doesn't limit how many codes one visitor can try, so a script can go through thousands of guesses for free: common words like WELCOME or SAVE20, numbered codes, lists of codes leaked from other stores.

What a bot gets out of it

Signs it's happening

1. Make guessing pointless (free, in WooCommerce)

Open Marketing, Coupons and go through your codes:

And if your store doesn't use coupons at all, turn the box off: WooCommerce, Settings, General, untick Enable the use of coupon codes. No box, nothing to guess.

2. Limit how many codes one visitor can try

A real shopper mistypes a code or two. Nobody types ten wrong codes in a quarter of an hour. Counting wrong codes per internet address and pausing the coupon box after a handful stops guessing cold. WooCommerce has no setting for it, so it takes a plugin or a firewall rule, and it has to cover both ways into the coupon box: the classic cart's apply_coupon request and the blocks' Store API. A rule on one alone leaves the other open.

How Ropeline Pro does it

Ropeline Pro's store plans guard the coupon box as part of checkout protection:

The same plan limits checkout tries and stops card-testing bots: see the card testing guide.

See what bots can find on your store. The free check looks at your coupon box, checkout, login and more in 10 seconds. Ropeline Pro's store plans are free for 14 days.

Check my store free See Ropeline Pro

Questions

What about shoppers using coupon-finder browser extensions?

Some extensions try a list of codes for the shopper at checkout. One that tries 10 wrong codes within 15 minutes gets the coupon box paused for that shopper for an hour, like anyone else. They can still buy, just without a code.

Does it work with gift card plugins?

When a gift card plugin takes its codes in WooCommerce's coupon box, wrong gift card codes count the same way. Gift card plugins with a box of their own aren't covered.

Can I change the limit?

Yes. A developer can change the number of wrong codes, the time window and the pause with the ropeline_coupon_limits filter.