Title: Advanced Email Domain Restriction
Author: Md Siddiqur Rahman
Published: <strong>July 11, 2024</strong>
Last modified: May 24, 2026

---

Search plugins

![](https://ps.w.org/advanced-email-domain-restriction/assets/banner-772x250.png?
rev=3546262)

![](https://ps.w.org/advanced-email-domain-restriction/assets/icon-256x256.png?rev
=3546262)

# Advanced Email Domain Restriction

 By [Md Siddiqur Rahman](https://profiles.wordpress.org/rockscoder/)

[Download](https://downloads.wordpress.org/plugin/advanced-email-domain-restriction.1.4.1.zip)

 * [Details](https://wordpress.org/plugins/advanced-email-domain-restriction/#description)
 * [Reviews](https://wordpress.org/plugins/advanced-email-domain-restriction/#reviews)
 *  [Installation](https://wordpress.org/plugins/advanced-email-domain-restriction/#installation)
 * [Development](https://wordpress.org/plugins/advanced-email-domain-restriction/#developers)

 [Support](https://wordpress.org/support/plugin/advanced-email-domain-restriction/)

## Description

The **Advanced Email Domain Restriction** plugin provides a lightweight but powerful
way to control which email domains are allowed to register on your WordPress site.

### Key Features:

 * **Allow-list Only**: Restrict registrations to a specific list of trusted domains.
 * **Bulk Upload**: Import large lists of domains via CSV.
 * **Domain Export**: Download your allowed domains list for backup or analysis.
 * **WooCommerce Support**: Fully compatible with WooCommerce customer registration.
 * **Form Plugin Support**: Automatically validate email fields in **Contact Form
   7**, **WPForms**, and **Elementor Pro** forms.
 * **TLD & Full Email Support**: Restrict registrations to specific TLDs (e.g., .
   com) or specific email addresses (e.g., user@example.com).
 * **Case-Insensitive**: Matches `gmail.com` regardless of how the user types it.
 * **Custom Messages**: Define your own error messages for restricted domains.

## Screenshots

[⌊Settings Page⌉⌊Settings Page⌉[

Settings Page

[⌊Registration Form⌉⌊Registration Form⌉[

Registration Form

[⌊Custom Error Message⌉⌊Custom Error Message⌉[

Custom Error Message

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/advanced-email-domain-restriction`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the Settings-> Domain Restriction screen to configure the plugin.

## FAQ

### How do I customize error messages?

You can customize the error messages for allowed and restricted domains in the plugin
settings under the “Custom Messages” section.

## Reviews

![](https://secure.gravatar.com/avatar/f3e596991a7f1e977a5608ffb2a4c3ed9165edbd6a4f841afbbecca836a6dabd?
s=60&d=retro&r=g)

### 󠀁[The “Spam-Fighter”](https://wordpress.org/support/topic/the-spam-fighter/)󠁿

 [Ofi Khan](https://profiles.wordpress.org/ofikhan/) March 18, 2026

If you’re looking for a hassle-free way to secure your registration process, this
is the plugin to get. I’ve used several domain restriction tools in the past, but
the Advanced Email Domain Restriction plugin stands out because of its simplicity
and integration. What I love most is the ‘Bulk Upload’ feature—importing a long 
list of corporate domains via CSV saved me hours of manual entry. It’s lightweight,
doesn’t slow down the site, and the custom error messages allow me to stay on-brand.
Highly recommended for anyone running a membership site or a private corporate portal.

 [ Read all 1 review ](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/)

## Contributors & Developers

“Advanced Email Domain Restriction” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Md Siddiqur Rahman ](https://profiles.wordpress.org/rockscoder/)

[Translate “Advanced Email Domain Restriction” into your language.](https://translate.wordpress.org/projects/wp-plugins/advanced-email-domain-restriction)

### Interested in development?

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

## Changelog

#### 1.4.1

 * Fix: Exclude `/bridge` directory and `pnpm-lock.yaml` from distribution zip via`.
   distignore`.

#### 1.4.0

 * Feature: Rule type labels — each rule shows its type (Domain / TLD / Exact email/
   Wildcard) inline in the admin panel.
 * Feature: Live rule preview — shows an example address the rule will match as 
   you type.
 * Feature: Test email checker — enter any address to instantly see if it would 
   be Allowed or Blocked.
 * Feature: Wildcard rule support — `*.example.com` matches any subdomain of example.
   com.
 * Feature: Duplicate detection — duplicate rules are removed on save with an admin
   notice.
 * Feature: CSV import summary — import results now show Imported / Skipped duplicates/
   Invalid rows counts.
 * Enhancement: `AEDR_Rule_Parser` and `AEDR_Rule_Matcher` classes introduced for
   clean, testable validation logic.
 * Enhancement: CSV processor now accepts TLDs, exact emails, and wildcard rules
   in addition to plain domains.
 * Enhancement: PHPUnit unit tests added for all new classes.

#### 1.3.0

 * Feature: Added support for TLD-based matching (e.g., allow all emails from `.
   cz`).
 * Feature: Added support for full email address matching (e.g., allow `user@example.
   com`).
 * Enhancement: Updated Admin UI with clearer descriptions and placeholders for 
   new matching types.

#### 1.2.0

 * Feature: Added Support for **WPForms** and **Elementor Pro** email field validation.
 * Feature: Added Support for **Contact Form 7** email field validation.
 * Feature: Added Export to CSV feature for allowed domains.
 * Feature: Added CSV Bulk Upload for allowed domains.
 * Feature: Added client-side and server-side validation for file uploads.
 * Security: Hardened plugin with nonce and capability checks.
 * Security: Applied late escaping throughout the admin interface.
 * Security: Hardened CSV import logic against large files and malicious content.
 * Bug Fix: Fixed WooCommerce registration errors hook (changed from action to filter).
 * Enhancement: Added case-insensitive domain validation support.
 * Enhancement: Refactored to Clean Architecture (separated Validator and CSV Processor).
 * Enhancement: Settings are now cached for better performance.
 * Improvement: Cleaned up code and improved domain sanitization.

#### 1.1.0

 * WooCommerce customer registration email domain check support added.

#### 1.0.0

 * Initial release with support for allowed domains and custom error messages.

## Meta

 *  Version **1.4.1**
 *  Last updated **1 month ago**
 *  Active installations **80+**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [domain](https://wordpress.org/plugins/tags/domain/)[email](https://wordpress.org/plugins/tags/email/)
   [registration](https://wordpress.org/plugins/tags/registration/)[Restriction](https://wordpress.org/plugins/tags/restriction/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/advanced-email-domain-restriction/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/advanced-email-domain-restriction/reviews/)

## Contributors

 *   [ Md Siddiqur Rahman ](https://profiles.wordpress.org/rockscoder/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/advanced-email-domain-restriction/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.com/imsiddiqur)