SazGuard – Order Blacklist & Fraud Blocker for WooCommerce

By alexsazonov

0+ active installationsVersion 1.0.0

Block fake orders, serial COD non-collectors, and abusive buyers by Email, Normalized Phone, and IP on WooCommerce Checkout.

Description

SazGuard is a lightweight, 100% HPOS-native order blacklist and checkout fraud firewall for WooCommerce. It stops fake orders, repeat Cash on Delivery (COD) non-collectors, and abusive buyers before they can lock your inventory or waste your shipping budget.

Unlike legacy blacklist plugins that only check classic shortcodes or fail when buyers reformat their phone numbers, SazGuard inspects both Classic WooCommerce Checkout and Gutenberg Store API Checkout Blocks using deterministic phone and email normalization.

Key Architectural Features

  • Multi-Layer Blacklists (Email, Normalized Phone & IP Address): Block abusive buyers by exact Billing Email, Normalized Phone Number, and IPv4/IPv6 Address with zero artificial numeric caps.
  • Smart Phone Number Normalization: Automatically strips spaces, hyphens, parentheses, and international 00/+ prefixes (+1 (555) 234-8910 -> 15552348910) and matches trailing 9-digit national numbers (configurable via filter) so bad actors cannot bypass your blacklist by changing punctuation.
  • Dual Checkout Firewall (Classic + Store API Blocks): Intercepts checkout attempts on both standard [woocommerce_checkout] pages and modern WooCommerce Checkout Blocks before payment processing or inventory deduction.
  • Flexible Gateway Scope & Custom COD Gateway Support:
    • Block All Payment Methods: Completely prevent blacklisted buyers from placing orders.
    • Block Cash on Delivery (COD) Only: Prevent repeat COD non-collectors from selecting Cash on Delivery while still allowing them to purchase if they pay upfront online by credit card. Supports core COD and custom carrier COD gateways (e.g., Nova Poshta, Ukrposhta, LiqPay) via the sazguard_is_cod_gateway filter.
  • One-Click “Block Buyer” with Rule Provenance: Add any problematic order’s Email, Phone, and Customer IP to your blacklist in 1 click directly from the WooCommerce > Orders table, Bulk Actions menu, or Single Order Edit Metabox. Smart provenance tracking guarantees that unblocking one order will never remove identifiers shared with other orders or manual entries.
  • Blocked Attempts Audit Log & Blocked Order Value HUD: Track the last 50 intercepted checkout attempts with timestamp, matched rule (EMAIL, PHONE, IP), buyer details, payment gateway, and estimated order value blocked.
  • Zero Self-Lockout Guard: Store administrators (manage_woocommerce) and their active IP addresses are automatically protected against accidental self-blocking.
  • Privacy & GDPR Compliance: Fully integrates with core WordPress Personal Data Export and Erasure tools (wp_privacy_personal_data_exporters / wp_privacy_personal_data_erasers).

Installation

  1. Upload the sazguard-order-blacklist-fraud-blocker-for-woocommerce folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Open WooCommerce > SazGuard Blocker to configure your protection scope (All Payment Methods or COD Only), customize your checkout error notice, or enter blacklisted emails, phone numbers, and IPs.
  4. In WooCommerce > Orders, click Block Buyer next to any fraudulent order to blacklist its customer in 1 click.

FAQ

Does SazGuard support WooCommerce High-Performance Order Storage (HPOS) and Checkout Blocks?

Yes. SazGuard declares full compatibility with custom_order_tables (HPOS) and cart_checkout_blocks and validates both Classic Checkout and Store API Block Checkout requests.

What happens if a blacklisted buyer formats their phone number differently?

SazGuard normalizes all phone numbers into digits-only strings and compares both exact normalized strings and 9-digit national suffixes. Entering (555) 234-8910, 555-234-8910, or +1 555 234 8910 will all be caught reliably.

Can I block Cash on Delivery (COD) for blacklisted buyers while still allowing card payments?

Yes. Set Enforcement Scope to Block Cash on Delivery (COD) Only in WooCommerce > SazGuard Blocker. Blacklisted buyers will see a polite notice asking them to choose an online prepayment method instead of COD.

Can I accidentally block my own administrator account?

No. SazGuard includes a built-in Zero Self-Lockout Guard that never blocks logged-in users with manage_woocommerce capabilities and ignores the current administrator’s email when clicking “Block Buyer” on test orders.

Screenshots

Changelog

1.0.0

  • Initial release.
  • Added Email, Smart Normalized Phone, and IPv4/IPv6 Blacklist engine.
  • Added Dual Checkout Interception for Classic Checkout and Gutenberg Store API Checkout Blocks.
  • Added Full Block vs. Cash on Delivery (COD) Only enforcement scope.
  • Added 1-click “Block Buyer” actions in WooCommerce Orders table, Bulk Actions, and Single Order Metabox.
  • Added Blocked Attempts Audit Log (last 50 events) and Protected Order Value HUD.