=== Block Emails for WooCommerce Checkout ===
Contributors: conschneider
Donate link: https://conschneider.de/donate
Tags: woocommerce, block, emails, spam, fraud
Requires at least: 5.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Block specific email addresses, whole domains or TLDs during WooCommerce checkout — including block checkout and express payment buttons.

== Description ==

Block Emails for WooCommerce lets you stop unwanted customers at checkout. Enter the email addresses you want to block — or block a whole domain (`@spammy.org`) or an entire TLD (`.xyz`) — and the plugin rejects the order before payment is taken. You can customize the error message shown to the blocked customer.

**Covers every checkout path:**

* Classic (shortcode) checkout
* Block checkout (Store API)
* Express payment buttons — Apple Pay, Google Pay, PayPal — which bypass the classic checkout validation

**Keeps you informed:**

* A counter of blocked checkout attempts (with reset button)
* A recent-blocks log on the settings page showing the matched rule, attempted email and IP
* Full history in WooCommerce > Status > Logs (source `wc-block-emails`)

Matching is case-insensitive. Nothing is blocked until you add an entry.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/wc-block-emails` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Use the WooCommerce->Block Emails screen to configure the plugin.

== Frequently Asked Questions ==

= What does this plugin do? =

It blocks specific email addresses, domains or TLDs during the WooCommerce checkout process.

= How do I use the plugin? =

After installing and activating the plugin, go to WooCommerce->Block Emails and enter the entries you want to block, one per line: `spam@spammy.org` (address), `@spammy.org` (domain) or `.xyz` (TLD).

= Does it work with the block checkout and express payment buttons? =

Yes. Since 1.0.5 the block also runs on the Store API, which covers the block checkout and express buttons such as Apple Pay, Google Pay and PayPal.

== Screenshots ==

1. The settings page where you can enter the email addresses to block.

== Changelog ==

= 1.0.5 =
* Block on the Store API: block checkout and express payment buttons (Apple Pay, Google Pay, PayPal) no longer bypass the blocklist.
* Case-insensitive matching.
* Blocked-attempts counter with reset button.
* Recent-blocks log on the settings page (matched rule, email, IP) plus full history in WooCommerce > Status > Logs. Log source filterable via `woob_log_source`.
* Declare WooCommerce as a required plugin.

= 1.0.2 =
* Declare HPOS compatibility.

= 1.0.1 =
* You can now enter TLDs (top-level domains) to block all email addresses from that domain. Example: .org will block all email addresses ending in .org.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.5 =
* Express payment buttons (Apple Pay, Google Pay, PayPal) and the block checkout are now covered by the blocklist.

= 1.0.2 =
* HPOS compatibility.

= 1.0.1 =
* TLDs are now supported.

= 1.0.0 =
* Initial release.
