Description
Spam Defender - Email Blocker helps you reduce spam and fake activity by blocking specific email addresses or domains.
Once blocked, users with those emails will not be able to:
- Register new accounts
- Login
- Post comments
- Checkout or create accounts in WooCommerce
This plugin is lightweight, easy to use, and comes with an admin settings page where you can manage blocked emails/domains.
Plugin Information
- Contributors: shagor447
- Tags: email, block, registration, comments, woocommerce
- Requires at least: WordPress 6.0
- Tested up to: WordPress 6.9
- Requires PHP: 7.4
- Stable tag: 1.0.1
- License: GPLv2 or later
Key Features
- Block emails globally across WordPress
- Block on login, registration, comments, and WooCommerce checkout
- Manage blocked emails from the settings page
- Search blocked email lists
- Prevents fake orders and spam signups
Technologies Used
- Platform: WordPress
- Framework: WooCommerce API
- Language: PHP, JavaScript, CSS3
- Security: Google reCAPTCHA v2 / v3 Integration
- Tools: WordPress Settings API for admin configuration
Installation
- Download the plugin zip file and extract it.
- Upload the
spam-defender-email-blocker folder to /wp-content/plugins/ directory. - Alternatively, download the github repository as a ZIP file, then go to Dashboard > Plugins > Add Plugin > Upload Plugin > install Now > and Activate Plugin.
- You can also install it form the plugin store by searching name of the plugin.
- Activate the plugin via the Plugins menu in WordPress.
- Navigate to Dashboard > Settings > Block Email and configure your blocked emails/domains.
Design & Performance Highlights
- Minimal interface that integrates naturally into WooCommerce review sections.
- Fast-loading and optimized for seamless user experience.
- Secure and reliable protection against fake review submissions.
Frequently Asked Questions
Will this block existing users with blocked emails?
- No. It prevents future registrations, logins, comments, and checkouts using blocked emails.
Does it work with WooCommerce?
- Yes, WooCommerce checkout and account creation are fully supported.
Is my data secure?
- Yes, all email data is securely handled.
Will it affect site performance?
- No, the plugin is lightweight and optimized for speed.
Screenshot
Admin settings page to manage blocked emails.

Blocked email options.

Unblocked email options.

Search functionality.

Changelog
1.0.1
- Tested with the latest WordPress release.
- Fixed minor bugs.
1.0.0
- Initial release.
- Block email addresses from registration, login, comments, and WooCommerce checkout.
- Added Settings link on the plugin page
- Improved settings form design (inline input + button)
- Added serial numbers in blocked email list
- Added search box with form submit
- Added pagination (20 per page)
- Added nonce verification for admin actions (block / unblock email)
- Used wp_unslash() before sanitizing input from
$_POST and $_GET - Escaped output properly using
esc_html(), wp_kses_post(), and esc_html__() - Sanitized checkout email field (billing_email) with wp_unslash() + sanitize_email()
- Added
// phpcs:ignore to prevent false-positive warnings for nonce checks (WooCommerce handles its own security)
Update Notice
1.0.1 = Version 1.0.1 has been released as a stable version.
License & Copyright
This plugin is free to use, modify, and distribute under the license terms.