Card Testing Blocker
A WooCommerce plugin that detects and blocks card-testing botnet attacks using honeypot products and intelligent threat scoring.
by Headwall Tech · github.com/headwalluk/card-testing-blocker · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/headwalluk/card-testing-blocker/archive/refs/heads/main.zipReadme
Card Testing Blocker
A WooCommerce plugin that detects and blocks card-testing botnet attacks using honeypot products and intelligent threat scoring.
The Problem
Card-testing bots abuse WooCommerce stores to validate stolen credit card numbers. They search for the cheapest product, add it to cart, and attempt checkout with hundreds of stolen cards. This results in:
- Fraudulent orders and chargebacks
- Payment gateway fees for failed transactions
- Account holds from payment processors
- Increased server load from bot traffic
How It Works
Card Testing Blocker uses a honeypot + threat scoring approach:
-
Honeypot Products — The plugin creates decoy products priced below your cheapest real product. These products are invisible to legitimate customers but appear when bots search for cheap products to test cards against.
-
Threat Scoring — Each checkout attempt is evaluated against multiple signals. Scores are summed and compared against a configurable threshold:
Signal Score Description Honeypot product in cart +100 The customer added a decoy product Empty search pattern +30 The IP recently performed an empty product search HTTP/1.1 protocol +10 Request uses HTTP/1.1 on an HTTP/2 site -
Blocking — When a checkout attempt exceeds the threat threshold, the order is blocked before any payment is processed.
Requirements
- WordPress 6.4 or later
- WooCommerce 8.0 or later
- PHP 8.0 or later
Installation
- Download the latest release
- Upload to
/wp-content/plugins/card-testing-blocker/ - Activate via the WordPress Plugins screen
- Navigate to WooCommerce > Card Testing Blocker to configure
Configuration
See the Administrator Guide for full configuration instructions.
WP-CLI
Manage honeypot products and run tests from the command line:
wp ctb status # Show honeypot product status
wp ctb create # Create honeypot products
wp ctb list # List all honeypot products
wp ctb test # Run visibility test suite
See the WP-CLI Reference for all commands and options.
For Developers
- Hooks & Filters Reference — Extend the scoring system with custom signals
- Architecture Overview — How the plugin is structured
- Testing Guide — Run and interpret the visibility test suite
License
This plugin is licensed under the GPL v2 or later.