Title: TYStudio Kessai Guard – Stop Card Testing &amp; Fake Orders for WooCommerce
Author: TYStudio
Published: <strong>November 28, 2026</strong>
Last modified: November 28, 2026

---

Search plugins

![](https://ps.w.org/tystudio-kessai-guard/assets/banner-772x250.png?rev=3831366)

![](https://ps.w.org/tystudio-kessai-guard/assets/icon-256x256.png?rev=3831366)

# TYStudio Kessai Guard – Stop Card Testing & Fake Orders for WooCommerce

 By [TYStudio](https://profiles.wordpress.org/tystudiojp/)

[Download](https://downloads.wordpress.org/plugin/tystudio-kessai-guard.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/tystudio-kessai-guard/#description)
 * [Reviews](https://wordpress.org/plugins/tystudio-kessai-guard/#reviews)
 *  [Installation](https://wordpress.org/plugins/tystudio-kessai-guard/#installation)
 * [Development](https://wordpress.org/plugins/tystudio-kessai-guard/#developers)

 [Support](https://wordpress.org/support/plugin/tystudio-kessai-guard/)

## Description

In a card testing attack, bots push hundreds of stolen card numbers through your
checkout to find out which ones still work. You are left with gateway fees, chargebacks,
a list of failed orders and, in the worst case, a suspended payment account.

Kessai Guard stops the requests before WooCommerce creates an order and before your
payment gateway is asked about the card.

#### How it protects the checkout

 * **Limits that do not rely on the IP address alone.** Payment attempts and failed
   payments are counted per IP address, per customer account, per email address 
   and per browser session. Whoever reaches a limit is locked out for a while, longer
   each time, and never for good. Submissions rejected for a missing field are not
   counted as payment attempts, so customers who mistype a postcode are not punished.
   Naming somebody else’s email address or user name in many requests does not lock
   that person out, and the owner of an account can still log in from a network 
   they used before while somebody else guesses its password.
 * **Browser check without a CAPTCHA.** Real browsers solve a small puzzle in the
   background and receive a signed pass. Customers see nothing. Scripts that post
   straight to the checkout have no pass. A hidden trap field and a check of the
   software the request announces catch the simplest scripts.
 * **Attack mode with three defence levels.** A distributed attack changes its address
   with every request, so it only shows in store-wide numbers. When failed payments
   or lockouts burst (and most payment attempts fail, as they do in card testing,
   not merely the usual share of declined cards in a busy sale), attack mode switches
   on by itself and goes up one level at a time while the attack continues: tighter
   limits, a mandatory browser pass, and at the highest level a short extra verification
   for every order. It comes down the same way, emails you when it starts, and has
   an emergency release.
 * **A way back for customers stopped by mistake.** A shopper who was locked out
   is not simply turned away: a short check (one button, a few seconds) lets them
   try again a small number of times. Nothing they entered is lost.
 * **Reasons you can read.** The log, the order notes and the orders list say what
   happened in a sentence, such as “5 payment attempts from the same IP address 
   within 10 minutes (limit 5)”. Shoppers are never shown the limits.
 * **Login and registration limits.** Failed logins are counted per account and 
   per visitor, on the My account page and on the WordPress login page.
 * **Addresses that cannot be forged cheaply.** Forwarding headers such as X-Forwarded-
   For are honoured only when the request really comes through a proxy. Cloudflare
   is recognised out of the box.

#### What is protected

 * Classic checkout (shortcode)
 * Block checkout and the Store API, including requests wrapped in a batch call
 * The pay-for-order page
 * Add payment method in My account
 * Login and registration forms
 * Gateway requests made before an order exists: `ppc-create-order` (WooCommerce
   PayPal Payments) and `wc_stripe_create_and_confirm_setup_intent` (WooCommerce
   Stripe Gateway); the AJAX actions of other gateways can be added by name

#### Built to avoid blocking customers

 * **Quick setup**: three presets (standard, cautious, strict) and six kinds of 
   store (physical goods; digital goods, tickets and gift cards; subscriptions; 
   business customers; home electronics; accommodation and travel booking) set every
   limit in one step.
 * **Monitor mode** logs what would be blocked without blocking anything.
 * The browser check is enforced during attacks only if your real customers are 
   seen to carry a pass. A headless storefront is therefore not locked out.
 * An address with many paid orders in a day (an office, a mobile carrier, a proxy)
   is never locked out automatically. Orders by cash on delivery, bank transfer 
   or cheque do not count for this.
 * Store managers, IP addresses you list and logged-in customers you list are never
   checked.
 * Orders placed during an attack or after the extra verification get a note and
   a marker in the orders list. Nothing is held or cancelled.
 * **Never stops a sale by itself.** If the plugin itself runs into an error, the
   order goes through and the admin page tells you.

#### Risk score for every order, free

Every order placed through the checkout gets a score from 0 to 100 with the reasons
in plain words, in the orders list and on the order: several email addresses from
one network, several customers shipping to one address, a billing country that does
not match the shipping country or the country of the IP address (when WooCommerce’s
geolocation database is set up), and more. Orders that share details are linked 
to each other. Only keyed hashes of those details are stored. You set where the 
review and high bands begin, how many points each reason adds, the order total that
counts as high, after how many completed orders a logged-in customer counts as trusted,
how far back orders are compared and how long the links are kept. The free edition
shows the score; it never stops or holds an order because of it.

#### Dashboard and statistics

The dashboard shows payment attempts, failed payments, blocked requests, lockouts
and scored orders for the last 24 hours, 7, 30 or 90 days, with a chart per hour
or per day.

#### Coupon guessing and cart flooding

Scripts that guess coupon or gift codes, and scripts that add a product again and
again to hold a limited stock, are limited per IP address, on the classic cart and
checkout and on the block cart and checkout.

#### Health check, backup and WP-CLI

A health check shows what is set up and what is missing, tests email delivery and
whether a cache serves the browser check, and lists internal errors. The settings,
the points per reason and the blocklist can be exported and imported (secret keys
of outside services are left out). WP-CLI commands cover status, attack mode, unlocking,
the blocklist, the log, the health check and the backup.

#### Optional CAPTCHA

Cloudflare Turnstile, Google reCAPTCHA v2 or hCaptcha can be put in front of the
extra verification. Only shoppers who are asked for the verification ever see it.
If the service is down, the built-in check decides, so customers are not locked 
out.

#### For stores in Japan

A self-check for the Credit Card Security Guidelines (version 6.1, March 2026) lists
the measures the guidelines ask of online merchants, with the section each comes
from. Items the plugin can see for itself are filled in automatically; the rest 
you answer and annotate, and the result can be printed or saved as a PDF. The check
is shown when your admin language is Japanese or the store is located in Japan. 
It is an aid for your own review, not a certificate of compliance.

 * **Japanese addresses in the risk score**: collection at a post office or depot(
   局留め, 営業所止め), post boxes and forwarding; a watch list of shipping addresses
   you add; a phone number that is not a valid Japanese number for a Japanese address;
   kanji numerals in addresses are read as digits when orders are compared
 * **Account notices**: customers can be emailed when the address of their account
   changes or a payment method is added (off by default)
 * **Blocked addresses cannot change account details**: addresses on the blocklist
   or locked out cannot change the details or addresses of an account

#### Privacy

The protection runs on your site: no outside service takes part in checking a request.
Data leaves your site only if you opt in to Freemius after activation or switch 
on the optional CAPTCHA (see External services). The plugin sets first-party cookies
holding signed tokens (`chkw_pass`, and `chkw_verify` after the extra verification);
they contain no personal data. If you switch on device recognition (off by default),
a cookie `chkw_dev` with a random ID is kept for one year on the cart, checkout 
and account pages. The log stores the IP address and billing email of blocked requests
and failed payments for a number of days you choose, can remove those two values
earlier while keeping the entry, and is connected to WordPress’ personal data export
and erasure tools.

#### Pro

 * **Act on the score**: ask for the extra verification before payment, refuse the
   order, or hold a paid order before it ships. Nothing is refunded or cancelled
   automatically
 * **Review list** of held orders with one-click decisions; the staff gets an email
   and the shopper a message that the payment was received and the order is being
   checked
 * **Email code**: risky orders can require a six-digit code sent to the billing
   email address
 * **Payment service verdicts**: the risk level and 3-D Secure result reported by
   WooPayments and the WooCommerce Stripe Gateway, and disputes recorded with the
   score the order had (also from KOMOJU webhooks, when the event names a dispute;
   the event names KOMOJU uses have not been confirmed)
 * **Evidence report** per order for answering a payment dispute
 * **Account watch**: a suspicious login followed by a changed address or a new 
   payment method raises the score of the order that follows
 * **Purchase limits per customer** for limited releases and tickets (“2 per customer
   in 30 days”), recognising the same buyer across email addresses by shipping address
 * **Card details** from WooPayments and the WooCommerce Stripe Gateway: card from
   another country, prepaid card, one card under several email addresses
 * **Bulk decisions** in the orders list, one-click blocking from a fraud order,
   and an option to refuse orders that share details with one
 * **Dispute ratio** of the month with an early warning at a level you set
 * **Custom rules** on order total, countries, payment method, products (by id or
   SKU), categories (by id, slug or name), email domain and customer type
 * **Shadow mode**: try a preset or a rule next to the live settings, see what it
   would have stopped and what became of those orders, then apply it
 * **Disposable email addresses**: a built-in list of disposable email domains adds
   to the score
 * **Reports**: the effect of the protection on orders, each attack told from start
   to end, the addresses with the most log entries, and CSV export of the log and
   of the guideline check
 * **Alerts** to Slack, Discord, Microsoft Teams, Chatwork or any webhook, for attacks
   and held orders, an end-of-attack summary, and a weekly summary email
 * **Clean-up** of the unpaid orders an attack leaves behind, in one step or automatically(
   off by default)
 * **For stores in Japan, the guidelines’ measures against unauthorised logins**:
   two-step verification with an authenticator app (TOTP, with a QR code drawn on
   your server and backup codes), a login code by email after the right password(
   for logins from a new network or every login), the password or an app code before
   an account’s email address changes, email confirmation for new accounts registered
   on the My account page, and an email to the customer after a login from a new
   network
 * **For stores in Japan, fraud losses per month**: an estimate from orders marked
   as fraud and orders with a dispute, with an email in a month above 500,000 yen,
   the figure the guidelines use for a “fraud-prone merchant”. Card companies count
   on their own figures, so this is an estimate
 * **3-D Secure coverage**: the share of card payments that carried a 3-D Secure
   result (WooPayments and the WooCommerce Stripe Gateway)

Pro is a separate paid edition sold through Freemius. Everything described above
the “Pro” heading is free and stays free.

### External services

The protection itself uses no outside service. Two things can contact one, and both
are your choice.

#### Freemius

This plugin uses [Freemius](https://freemius.com) for the opt-in below, for the 
upgrade page and, in the Pro edition, for licences and updates.

 * After activation a screen asks whether you want to opt in. You can press “Skip”;
   then nothing is sent and the plugin works the same.
 * If you opt in, your site sends to Freemius: the first name, last name and email
   address of your WordPress user; the address and title of the site, its WordPress
   and PHP versions and its language; the version of this plugin and whether it 
   is active or was removed; and the names and versions of the installed plugins
   and themes. Later changes of these (an update, deactivation, removal) are sent
   as well. You can opt out again at any time from the “Opt Out” link of the plugin
   on the Plugins screen.
 * The page “Upgrade” under WooCommerce > Kessai Guard shows prices and the purchase
   form from Freemius, which is loaded from freemius.com in your browser when you
   open that page.
 * When you deactivate the plugin, a form may ask why. An answer is sent to Freemius
   only if you submit the form.
 * No data about your shoppers or orders is ever sent to Freemius.

Freemius: [Terms of service](https://freemius.com/terms/), [Privacy policy](https://freemius.com/privacy/)

#### Optional CAPTCHA

Off by default. When you switch it on in the settings, only shoppers who are asked
for the extra verification see the CAPTCHA widget:

 * The shopper’s browser loads the widget script of the service you chose, which
   receives the shopper’s IP address and browser details as with any web request.
 * Your server then sends the token from the widget, your secret key and the shopper’s
   IP address to the service to check the token.

The services and their terms:

 * Cloudflare Turnstile (challenges.cloudflare.com): [Terms](https://www.cloudflare.com/website-terms/),
   [Privacy policy](https://www.cloudflare.com/privacypolicy/)
 * Google reCAPTCHA v2 (www.google.com/recaptcha): [Terms](https://policies.google.com/terms),
   [Privacy policy](https://policies.google.com/privacy)
 * hCaptcha (js.hcaptcha.com, api.hcaptcha.com): [Terms](https://www.hcaptcha.com/terms),
   [Privacy policy](https://www.hcaptcha.com/privacy)

#### Not outside services

The health check on the admin page sends two test requests from your site to your
own site. The alerts of the Pro edition are sent only to the addresses (webhooks)
you enter yourself.

## Screenshots

[⌊Dashboard: protection status, defence level and the statistics of the last 24 
hours, 7, 30 or 90 days.⌉⌊Dashboard: protection status, defence level and the statistics
of the last 24 hours, 7, 30 or 90 days.⌉[

Dashboard: protection status, defence level and the statistics of the last 24 hours,
7, 30 or 90 days.

[⌊Settings: quick setup, limits per visitor, browser check and attack mode.⌉⌊Settings:
quick setup, limits per visitor, browser check and attack mode.⌉[

Settings: quick setup, limits per visitor, browser check and attack mode.

[⌊Activity log with the reason of every entry in a sentence.⌉⌊Activity log with 
the reason of every entry in a sentence.⌉[

Activity log with the reason of every entry in a sentence.

[⌊Blocklist and current lockouts.⌉⌊Blocklist and current lockouts.⌉[

Blocklist and current lockouts.

[⌊Guideline check for stores in Japan.⌉⌊Guideline check for stores in Japan.⌉[

Guideline check for stores in Japan.

[⌊Risk score and reasons on the order screen.⌉⌊Risk score and reasons on the order
screen.⌉[

Risk score and reasons on the order screen.

## Installation

 1. Install and activate the plugin. WooCommerce must be active.
 2. A screen asks whether you want to opt in to Freemius (see “External services”).
    Opt in or press “Skip”; the plugin works the same either way.
 3. Open **WooCommerce > Kessai Guard**. If your store is under attack right now, answer“
    Yes” to the question at the top to switch attack mode on at once.
 4. On the dashboard, check the card “Your IP address, as seen by the store”. It must
    show your own public IP address. If it does not, correct it under **Settings > 
    Visitor IP address**.

## FAQ

### Will customers see a CAPTCHA or any other challenge?

In normal operation, no. The browser check runs in the background. During an attack
a customer may wait a second or two after pressing “Place order” while their browser
fetches a stronger pass.

A short extra verification (one button, a few seconds of calculation in the browser)
is shown in three cases only: to a shopper who was locked out, to every shopper 
at the highest defence level, which is off in the standard preset, and in Pro to
orders with a high risk score. It is not a picture puzzle and uses no outside service,
unless you switch on the optional CAPTCHA. It raises the cost of automated attempts;
it does not prove that a person is present.

### Does it work with the block checkout?

Yes. The Store API endpoints behind the block checkout are protected, and so are
batch requests.

### Which payment gateways does it work with?

The checkout protection does not depend on the gateway: it acts before WooCommerce
calls any gateway. In addition, two gateway requests that run before an order exists
are protected out of the box (see “What is protected”), and you can add the AJAX
actions of other gateways by name in the settings.

### My site is behind Cloudflare or another proxy. Is that a problem?

Cloudflare is detected automatically. For other proxies the plugin learns from your
own admin requests whether a proxy is in front of the site. The dashboard shows 
the address it sees for you; if that is not your own address, choose the right header
in the settings.

### We take orders from an app or a headless storefront.

Those clients cannot run the browser check. Set **Require a browser pass** to “Never”.
The limits per visitor and attack detection by failed payments keep working. The
extra verification is not offered then, because it also runs in the browser: a locked-
out visitor waits for the lockout to end.

### Does it work on a multisite network?

Yes. Network activation sets up every site, sites added later are set up automatically,
and each site keeps its own settings, log and data.

### What about orders in other currencies?

Amount conditions (the high-value amount of the risk score, and in Pro the amounts
of rules) apply to orders in the store’s base currency. The plugin knows no exchange
rates; a currency switcher can pass converted totals through the `kessai_guard_order_total_in_base_currency`
filter.

### Does it slow my site down?

With the standard setting the script (29 KB, not a framework) is loaded on shop,
product, cart, checkout and account pages, and nowhere else. A visitor’s browser
fetches a pass once every 30 minutes, with one uncached request. Limits are counted
in a dedicated table with single-statement updates.

### What happens to my data when I delete the plugin?

Nothing is deleted unless you tick “Delete all Kessai Guard data when the plugin
is deleted” in the settings. With the box ticked, the settings, the blocklist, the
log, the statistics and what the plugin noted on orders (risk score, visitor address)
are removed; the orders themselves stay.

### Is this a replacement for my gateway’s fraud tools?

No. Keep 3-D Secure and your gateway’s own fraud screening switched on. Kessai Guard
keeps automated requests away from the gateway; it does not judge whether an individual
card or customer is genuine.

### Can other plugins extend it?

Yes, from another plugin (or a must-use plugin). All of this is part of the free
edition:

 * `kessai_guard_guard_ready` hands you the guard. `$guard->add_rule( $callable )`
   adds a check of your own that runs after the built-in ones and may refuse a request;`
   $guard->demand_verification( $ctx, 'my=reason' )` asks the shopper for the extra
   verification.
 * `kessai_guard_verification_gate` puts a step of your own in front of the extra
   verification. The dialog shows what the gate asks for: a CAPTCHA, or a field 
   for an answer the shopper types (a member number, a code you sent), with a link
   to ask again.
 * `kessai_guard_risk_facts` and `kessai_guard_risk_factors` add reasons of your
   own to the risk score; `kessai_guard_risk_weight_defaults` and `kessai_guard_risk_weight_labels`
   list them under Settings > Points per reason.
 * `Links::add()` links orders by an identifier of your own (a kind of up to 8 characters,
   hashed with `Links::hash()`); once `kessai_guard_link_kind_label` gives the kind
   a name, orders that share it are listed as related.
 * `kessai_guard_order_scored` fires when an order is scored before payment, and`
   kessai_guard_order_risk` when the final score of a paid order is not low; `kessai_guard_order_risk_marks`
   keeps a mark of your own with the score.
 * `kessai_guard_is_exempt`, `kessai_guard_client_ip`, `kessai_guard_protected_endpoints`,`
   kessai_guard_block_message` and `kessai_guard_load_script` adjust who is checked,
   how the visitor’s address is read, which AJAX actions are protected, what a blocked
   shopper is told and where the script is loaded.
 * `kessai_guard_export_options` and `kessai_guard_import_options` add your own 
   options to the configuration file.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“TYStudio Kessai Guard – Stop Card Testing & Fake Orders for WooCommerce” is open
source software. The following people have contributed to this plugin.

Contributors

 *   [ TYStudio ](https://profiles.wordpress.org/tystudiojp/)

[Translate “TYStudio Kessai Guard – Stop Card Testing & Fake Orders for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/tystudio-kessai-guard)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tystudio-kessai-guard/),
check out the [SVN repository](https://plugins.svn.wordpress.org/tystudio-kessai-guard/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/tystudio-kessai-guard/)
by [RSS](https://plugins.trac.wordpress.org/log/tystudio-kessai-guard/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * The plugin is now called TYStudio Kessai Guard, and its text domain is `tystudio-
   kessai-guard`. Settings and data are kept.
 * Changed: the bands of the risk score, its time window, the high-value amount,
   trusted customers and how long links between orders are kept are set in the free
   edition, under Settings > Orders. Values saved in Pro are moved there.
 * Changed: the dashboard shows how many orders were scored and how many are in 
   the review or high band, for the last 24 hours, 7, 30 or 90 days.
 * Changed: the points each reason adds to the risk score are set in the free edition,
   under Settings > Points per reason, and the guideline check can be printed in
   the free edition.
 * Security: more checks on uploaded export files and on values read from request
   headers.
 * Security: the fields of a form are read only when the form’s nonce is valid, 
   and the links and filters of the admin screens carry a nonce.

#### 1.0.2

 * The plugin has its final name, Kessai Guard (“kessai” is Japanese for payment).
   Versions 1.0.0 and 1.0.1 were only available from Freemius, under a working name.
   Settings and data are kept. The hooks for developers and the WP-CLI command carry
   the new name: `kessai_guard_*` and `wp kessai-guard`.

#### 1.0.1

 * Security: an email address on the list of trusted customers exempts only the 
   logged-in customer of that account, not anyone who types the address.
 * Security: an IP address read from a forwarding header is not trusted for the 
   allowlist while nothing is known about the network.
 * Fixed: one customer whose card was declined a few times could start attack mode
   for the whole store; a visitor locked out under several identities counts as 
   one lockout.
 * Fixed: password guessing on the login form no longer starts attack mode on the
   checkout.
 * Fixed: failed payments start attack mode only when most payment attempts fail,
   not during a busy sale with the usual share of declined cards.
 * Fixed: requests that merely name somebody’s email address or user name do not
   lock that person out; the owner of an account can log in from a known network
   while its password is being guessed.
 * Fixed: a burst of requests sent side by side could exceed the attempt limit.
 * Fixed: orders by cash on delivery or bank transfer no longer make an address 
   count as shared.
 * Fixed: the checkout script no longer overrules another plugin that holds the 
   order back, and gives up waiting for the store after ten seconds.
 * Changed: more gateway endpoints, several alert recipients and a log kept for 
   up to 365 days are part of the free edition.
 * Changed: deleting all data also removes what was noted on orders; a request to
   erase personal data also removes the stored links between orders.
 * Changed: the readme describes what is sent to Freemius.
 * Pro: fixes for the second login step, the emailed code, purchase limits, the 
   hold after payment and the clean-up tool.

#### 1.0.0

 * First release.

## Meta

 *  Version **1.0.3**
 *  Last updated **2 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [card-testing](https://wordpress.org/plugins/tags/card-testing/)[checkout](https://wordpress.org/plugins/tags/checkout/)
   [fraud prevention](https://wordpress.org/plugins/tags/fraud-prevention/)[security](https://wordpress.org/plugins/tags/security/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/tystudio-kessai-guard/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/tystudio-kessai-guard/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/tystudio-kessai-guard/reviews/)

## Contributors

 *   [ TYStudio ](https://profiles.wordpress.org/tystudiojp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/tystudio-kessai-guard/)