Title: CardFence for WooCommerce
Author: Warcal
Published: <strong>November 29, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://ps.w.org/cardfence-for-woocommerce/assets/banner-772x250.png?rev=3833247)

![](https://ps.w.org/cardfence-for-woocommerce/assets/icon-256x256.png?rev=3833238)

# CardFence for WooCommerce

 By [Warcal](https://profiles.wordpress.org/warnz/)

[Download](https://downloads.wordpress.org/plugin/cardfence-for-woocommerce.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/cardfence-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/cardfence-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/cardfence-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/cardfence-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/cardfence-for-woocommerce/)

## Description

Card testers are bots that try thousands of stolen card numbers on your checkout
to find the ones that still work. Each attempt can cost you a gateway fee and leave
behind fake orders and bounced failed-order emails. Enough of them can get your 
payment account frozen.

Many security and CAPTCHA plugins only watch the classic checkout. The **Cart and
Checkout blocks pay through the Store API**, a different route, and bots use it 
directly. **CardFence protects every way a bot can reach your payment gateway:**

 * **Block checkout**, including Store API batch requests and the unversioned route
 * **Classic checkout**
 * **Pay for order**, on both the classic page and the Store API
 * **My Account  Add payment method**, a favorite of card testers because it creates
   no order
 * **Gateway AJAX endpoints**, with PayPal Payments’ covered by default and room
   to add more

#### How it protects you

 * **Rate limits per IP.** Real buyers never notice them. Scripts are blocked within
   seconds. IPv6 is counted per /64, so attackers can’t rotate through their own
   address block.
 * **Blocks after repeated declines.** Too many declined payments from one IP or
   one email triggers a temporary block. Gateway webhooks, subscription renewals
   and staff edits are never mistaken for an attack.
 * **Attack mode.** When failed payments spike across your store, CardFence switches
   to attack mode by itself:
    - rate limits tighten
    - the optional Cloudflare Turnstile challenge switches on
    - “Failed order” emails pause, protecting your email reputation
    - you get one email about it
 * It switches itself off afterwards, so there’s no extra friction the rest of the
   time.
 * **Browser check.** This confirms an order came from a browser that actually opened
   your checkout page, which catches scripts posting straight to the API.
 * **Allow and block lists.** IPs, ranges, email addresses and whole domains.
 * **Trusted customers.** Store managers and customers who have paid before are 
   never limited.
 * **Monitor mode.** See exactly what would be blocked before switching protection
   on.
 * **A clear dashboard.** Shows blocked attempts, failed payments, active blocks,
   the most-blocked IPs and a full activity log.
 * **Speaks your store’s language.** Translated into German, French, Spanish, Italian,
   Dutch, Polish, Portuguese (Portugal), Swedish, Danish and Czech.

Built for HPOS and the Cart/Checkout blocks. Every layer of protection is free, 
with no account or API key needed.

#### CardFence Pro

Stop the attack, then clean up after it:

 * **Block checkouts from cloud and hosting servers.** Card-testing scripts run 
   on rented servers. Refuse checkouts from AWS, Google Cloud, DigitalOcean, Hetzner,
   OVHcloud and 9 more providers, or require the challenge from them only. The list
   ships with the plugin; nothing is looked up online.
 * **Coupon and gift card code guessing protection.** Counts coupon codes that don’t
   exist and gift card redeem attempts per IP, then blocks the IP. A real customer
   is never counted.
 * **Risky order review.** Every order gets a 0–100 risk score with the reasons,
   in the orders list and on the order. Risky paid orders can wait On hold until
   you look.
 * **Dispute evidence pack.** Download the order, the customer, the checkout session
   and the activity around it as one document for a chargeback response.
 * **Cloudflare firewall sync.** Copy blocked IPs to an IP list in your own Cloudflare
   account, so a firewall rule stops them at the edge.
 * **Fake-order clean-up.** Trash every flagged card-testing order in one click,
   or automatically each day. Real customers’ declines are never touched, and everything
   can be restored.
 * **Weekly “money saved” report.** Every Monday: attempts blocked, declines, attacks
   and the gateway fees you avoided.
 * **Slack and webhook alerts.** Know the moment an attack starts.
 * **Disposable-email and country rules.** Refuse throwaway inboxes and countries
   you don’t sell to, without calling any outside service.
 * **CSV export.** Download the activity log for your payment provider or accountant.
 * **Priority support.**

Start a 14-day free trial from the plugin’s **Go Pro** screen. No card required.
Every purchase has a 14-day refund window.

#### Documentation

Full guides, a settings reference, troubleshooting and developer hooks are in the
[CardFence documentation](https://warcal.dev/wordpress/plugins/cardfence-for-woocommerce/docs).

### External services

**Cloudflare Turnstile** is an optional bot-detection challenge. It’s off until 
you enter your own Turnstile site key and secret key in the settings. Once enabled,
and by default only while attack mode is on:

 * the cart, checkout, order-pay and add-payment-method pages load Cloudflare’s 
   Turnstile script from `challenges.cloudflare.com`, which collects technical browser
   signals to tell humans from bots;
 * when an order is submitted, your server sends the challenge response, your secret
   key and the buyer’s IP address to `https://challenges.cloudflare.com/turnstile/
   v0/siteverify` to confirm it.

Provided by Cloudflare, Inc.: [Terms](https://www.cloudflare.com/website-terms/),
[Privacy Policy](https://www.cloudflare.com/privacypolicy/), [Turnstile privacy addendum](https://www.cloudflare.com/turnstile-privacy-policy/).

**Freemius** handles opt-in usage data, license activation and Pro upgrades. The
plugin connects to Freemius only when you:

 * opt in on the welcome screen, which sends your site URL, WordPress and PHP versions,
   plugin version, and your name and email address;
 * activate a license key or start the Pro trial, which sends the license key and
   your site URL;
 * open the upgrade or pricing page, which loads the Freemius checkout;
 * submit the optional feedback form when deactivating the plugin, which sends the
   reason you chose and an anonymous site ID.

If you skip the opt-in, none of the above is sent unless you take one of these steps.
See the Freemius [terms of service](https://freemius.com/terms/) and [privacy policy](https://freemius.com/privacy/).

**Webhook alerts (Pro).** If you enter a webhook URL, alert messages are sent to
that address. They include the site name, the event and, for block alerts, the blocked
IP or email.

**Cloudflare API (Pro, optional).** Only if you turn on “Cloudflare firewall sync”
and enter your own Cloudflare API token, account ID and list ID: the plugin calls`
https://api.cloudflare.com/client/v4` with your token to read that IP list and to
add or remove the IP addresses CardFence has blocked, each with a short reason. 
No other data is sent. Provided by Cloudflare, Inc.: [Terms](https://www.cloudflare.com/website-terms/),
[Privacy Policy](https://www.cloudflare.com/privacypolicy/).

### Privacy

To protect your checkout, the plugin stores the IP address and email used for each
checkout attempt and payment failure. They’re kept for 30 days by default, and you
can set this anywhere from 1 to 365 days. It also sets a strictly necessary session
cookie (`cksh_sid`) on cart and checkout pages. In Pro, the IP address, its country,
the browser’s user agent and the checkout’s security checks are also saved on each
order placed through the checkout, for the risk score and the dispute evidence pack.
This data is included in WordPress’s personal-data export and erase tools, and suggested
privacy-policy text is added under Settings  Privacy.

## Screenshots

[⌊The dashboard: your checkout is protected.⌉⌊The dashboard: your checkout is protected
.⌉[

The dashboard: your checkout is protected.

[⌊Attack mode: switched on automatically, with one-click clean-up of attack orders(
Pro).⌉⌊Attack mode: switched on automatically, with one-click clean-up of attack
orders (Pro).⌉[

Attack mode: switched on automatically, with one-click clean-up of attack orders(
Pro).

[⌊The activity log, with filters and CSV export (Pro).⌉⌊The activity log, with filters
and CSV export (Pro).⌉[

The activity log, with filters and CSV export (Pro).

[⌊Settings, with safe defaults and one card per topic.⌉⌊Settings, with safe defaults
and one card per topic.⌉[

Settings, with safe defaults and one card per topic.

[⌊Built-in help: setup steps, how every checkout is checked and what each event 
means.⌉⌊Built-in help: setup steps, how every checkout is checked and what each 
event means.⌉[

Built-in help: setup steps, how every checkout is checked and what each event means.

[⌊Free and Pro compared.⌉⌊Free and Pro compared.⌉[

Free and Pro compared.

## Installation

 1. Install and activate the plugin. WooCommerce must be active.
 2. Open **CardFence** in the admin menu. Protection is on straight away with safe 
    defaults.
 3. If your site is behind Cloudflare, a load balancer or another proxy, go to **Settings
    Protection** and set **Client IP source** to match. The setting shows the IP it
    currently sees for you.
 4. Optional: create a free Cloudflare Turnstile widget and paste its keys into **Settings
    Bot checks**. It’s then shown during attacks.

## FAQ

### Will this block real customers?

The defaults are set well above what a human does. They allow 8 checkout attempts
per 10 minutes and 5 declined payments per hour before a temporary block. Store 
managers, allow-listed IPs and customers who have paid before are never limited.
To see the effect first, use Monitor mode.

### Do I need Cloudflare?

No. Turnstile is optional and free, and it works on any site.

### Will express payment buttons (Apple Pay, Google Pay) still work?

Yes. They’re rate-limited like any checkout. Express buttons on product pages can’t
carry a challenge, so they’re refused while the browser check or Turnstile is enforced.
With the recommended settings that only happens during an attack.

### Which payment gateways does it work with?

Every gateway that takes payment through WooCommerce’s checkout, including Stripe,
WooPayments, PayPal Payments, Square and Mollie. It complements your gateway’s own
fraud tools by stopping bots before they reach them.

### My site is behind a proxy and everyone gets blocked together

Set **Client IP source** in Settings to match your proxy, then use **Blocks  Remove
all**. Otherwise every buyer appears to come from the proxy’s address.

### Will it slow down my store or my PageSpeed score?

No. It adds nothing at all to your home, shop and product pages: no files, no queries,
no cookies. Cart and checkout get one 5 KB script. Checks only run when an order
is submitted, and blocked bots are turned away before WooCommerce even creates an
order.

### Can it crash my site?

It’s built not to. Every part of CardFence that runs on your store is guarded: if
something goes wrong inside it, the page loads normally, the checkout goes through
as if it weren’t installed, and store managers get a notice with the details.

### What happens when I uninstall?

Deleting the plugin removes its tables, settings, scheduled tasks and the flags 
it added to orders. Orders are never deleted.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“CardFence for WooCommerce” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Warcal ](https://profiles.wordpress.org/warnz/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

[Translate “CardFence for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/cardfence-for-woocommerce)

### Interested in development?

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

## Changelog

#### 1.0.0

 * First release, translated into German, French, Spanish, Italian, Dutch, Polish,
   Portuguese (Portugal), Swedish, Danish and Czech.

## Meta

 *  Version **1.0.0**
 *  Last updated **1 hour ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 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](https://wordpress.org/plugins/tags/fraud/)[rate limit](https://wordpress.org/plugins/tags/rate-limit/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/cardfence-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cardfence-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cardfence-for-woocommerce/reviews/)

## Contributors

 *   [ Warcal ](https://profiles.wordpress.org/warnz/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cardfence-for-woocommerce/)