Email Domain Filter
WordPress plugin that blocks form submissions from free email providers in Elementor Pro forms
by Early to Rise AB · github.com/thomasnordenetr/email-domain-filter · 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/thomasnordenetr/email-domain-filter/archive/refs/heads/main.zipA WordPress plugin that prevents form submissions from common free email providers like Gmail, Hotmail, Yahoo, and Outlook.
Description
This plugin integrates with Elementor Pro forms to validate email submissions. It blocks submissions from common free email providers, requiring users to submit forms using their company email addresses instead.
Features
- Blocks submissions from common free email providers
- Integrates seamlessly with Elementor Pro Form widget
- Customizable error message via settings page
- Editable list of blocked domains via settings page
- Two display styles: Elementor native or floating tooltip
- Exclude specific forms by CSS ID
- Real-time client-side validation with instant feedback
- Server-side validation as backup
- Reset to defaults button
Installation
- Download the plugin files
- Upload the
email-domain-filterfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- The plugin will automatically start filtering email submissions from your Elementor forms
Configuration
Go to Settings → Email Domain Filter in WordPress admin to configure:
Error Message
Customize the message shown when a user tries to submit a form with a blocked email domain.
Default: "Please note, we don't accept submissions from personal e-mail addresses. Please use your business e-mail."
Display Style
Choose how the error message is displayed:
- Elementor style (below field) - Uses Elementor's native error styling. Best for simple form layouts.
- Tooltip (floating box) - A red floating tooltip that appears below the email field. Works better with side-by-side field layouts.
Blocked Domains
Edit the list of blocked email domains. Enter one domain per line (without the @ symbol).
Default blocked domains:
- aol.com
- gmail.com
- hotmail.com
- icloud.com
- mail.com
- me.com
- outlook.com
- protonmail.com
- yahoo.com
- yandex.com
- zoho.com
Excluded Forms
Exclude specific forms from email filtering by entering their CSS ID, one per line.
To set a CSS ID for a form:
- Edit the page in Elementor
- Select the Form widget
- Go to the Advanced tab
- Enter an ID in the CSS ID field (e.g., "contactForm")
- Add that same ID to the excluded forms list in plugin settings
This is useful if you have forms where you want to allow personal email addresses, such as newsletter signups or contact forms.
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Elementor Pro
Changelog
1.3.0
- Added display style option (Elementor style or Tooltip)
- Added ability to exclude specific forms by CSS ID
- Improved tooltip styling with sans-serif font and larger text
- Changed display style setting to radio buttons
1.2.0
- Added tooltip display option
- Added display style setting
1.1.0
- Added settings page
- Added customizable error message
- Added editable blocked domains list
- Added reset to defaults button
- Added settings link on plugins page
1.0.0
- Initial release
Support
For support or feature requests, please contact Early to Rise AB.
License
This plugin is licensed under the GPL v2 or later.