Contributors:
Tags: access control, email restriction, domain restriction, login, security
Requires at least: WordPress 5.0
Tested up to: WordPress 6.4
Requires PHP: 7.4
License: MIT
Restrict website access or registrations to users with specific email domains. Ideal for corporate intranets, private communities, educational sites, or client portals.
WP Email Restriction allows site owners to limit access and registrations to specific email domains. After configuration, only users with authorized email addresses can register or log in — perfect for:
- Corporate Intranets – Employees only
- Private Communities – Members-only environment
- Educational Sites – Users with institution emails
- Client Portals – Exclusive access for clients
- Whitelist allowed email domain(s) (e.g.,
@company.com) - Validates email addresses during login or registration
- Domains configured under Settings → Email Restriction
- Only whitelisted emails can register/log in
- Default WordPress admin users (
manage_optionscapability) bypass restriction
- Clean admin interface for domain configuration
- Clear error messaging on denied access
- Hooks and filters for customization
- Extendable via themes or other plugins
- Built on WordPress’s authentication and nonce systems
- Data sanitized and validated against approved domains
- Go to Plugins → Add New
- Search for WP Email Restriction
- Click Install Now, then Activate
- Download the plugin ZIP or clone the epo
- Upload folder to
/wp-content/plugins/ - Activate via Plugins menu
- After activation, go to Settings → Email Restriction
- Add your domain (without
@) - Save changes
- Restriction applies to both registration and login
Q: Can I add multiple domains?
A: Yes — add each domain separated by commas.
Q: What about existing users?
A: Current admin users remain unaffected. Others must match a whitelisted domain.
Q: Can I customize error messages?
A: Yes — use the wp_email_restriction_error_message filter.
Q: Does it work with multisite?
A: Not yet. Multisite support may be added in future versions.
Report issues or suggest features at the GitHub repo issues page.
This plugin is licensed under the MIT License Do whatever you want, just don’t remove the original license and don’t blame us if something breaks.
