BuddyDev

WordPress Restrict Email Domains

The WordPress Restrict Email domains plugin allows you to limit/restrict user registration on your WordPress/ BuddyPress site by email domains. You can limit the registration by specific emails or domains or just the domain extensions(like .edu/.com)

This plugin is best suited for intranets, educational institutes or the cases when you do not want to allow registration from everyone but a subset of users based on their email address. If you want to limit registrations on your WordPress, BuddyPress, WooCommerce website to the emails belonging to only specified domains, this plugin is for you. It goes one step further and allows you to allow users by emails, or domains or even the domain extensions. So, if you are building an educational website and only want to allow the users from .edu domain, just put .edu in the settings. Same goes with the domain. If you are building a corporate network and only want to allow users from your own network, put your domain name in the settings.

It's easy and efficient. The use of regular expression gives it  a lot of flexibility. This plugin helps fight spam too.

Features:-

  • Your can limit user registration by email domains for
    • WordPress
    • WordPress Multisite
    • BuddyPress
    • BuddyBoss Platform
    • WooCommerce
    • Paid Memberships Pro
    • WP Members
    • UsersWP
    • Ultimate Member
  • Allows you to limit new user registrations by
    • Domain names(e.g example.com)
    • Extensions (e.g. .edu, will only allow emails having .edu domain)
    • Email addresses (e.g admin@you-website.com, friends@some-other-website.com)
  • You can configure the rules to allow users in the plugin admin panel(domain/email/extensions)
  • It is very efficient

Screenshots

with BuddyPress

With WordPress Multisite

With WordPress

With WooCommerce:-

WooCommerce Customer Registration

With version 1.0.9+, It restricts the registration of customer for WooCommerec too. Only customers with allowed email domains can register with WooCommerce.

Admin Options:-

Allows you to update the list of allowed domains and the erro message as shown below

How to Use:-

After activating the plugin, you can access plugin settings from Dashboard->Settings->Restrict Email Domains.

When entering the domains list, please do not use comma. Put one entry per line. Also, please only use lowercase letters.

Here is a screenshot:-

Release History

  • Version: 1.2.2

    Monday, 26 August, 2024
    • Tested With: WordPress 6.6.1
    • Compatible With: WordPress 5.0+

    Bumping version to regenerate archive for WordPress 6.4.3 compatibility.

  • Version: 1.2.1

    Tuesday, 05 December, 2023
    • Tested With: WordPress 6.4
    • Compatible With: WordPress 5.0+

    Added Support for the registration form provided by Elementor essential addon plugin.

  • Version: 1.2.0

    Saturday, 25 March, 2023
    • Tested With: BuddyPress 11.1.0
    • Compatible With: BuddyPress 8.0+

    Added support for Login/Signup Popup plugin and refactored the code.

  • Version: 1.1.6

    Friday, 16 September, 2022
    • Tested With: WordPress 6.0
    • Compatible With: WordPress 4.5+

    Added an action hook 'wpresed_email_domain_validation_failed' to be fired when the email validation fails. A site admin can use this hook to add custom code and get notified when a WordPress user registration fails due to email validation.

  • Version: 1.1.5

    Friday, 05 August, 2022
    • Tested With: WordPress 6.0
    • Compatible With: WordPress 4.5+

    Added support for the Easy Digital Download plugin

  • Version: 1.1.4

    Thursday, 13 May, 2021
    • Tested With: WordPress 6.0
    • Compatible With: WordPress 4.5+

    Added compatibility with the User Registration plugin.

  • Version: 1.1.3

    Saturday, 29 August, 2020
    • Tested With: WordPress 5.5
    • Compatible With: WordPress 4.5+

    Added a filter to allow enabling/disabling specific integrations.

  • Version: 1.1.2

    Sunday, 28 July, 2019
    • Tested With: WordPress 5.2.3
    • Compatible With: WordPress 4.5+

    Fix space causing invalid entries. Now the settings work even if there are spaces around the entries.

  • Version: 1.1.1

    Saturday, 08 December, 2018
    • Tested With: WordPress 5.0
    • Compatible With: WordPress 4.5+

    Added support for ultimate Member plugin.

  • Version: 1.1.0

    Friday, 25 May, 2018
    • Tested With: WordPress 4.9.6
    • Compatible With: WordPress 4.5+

    Adding compatibility with UserWP plugin registration.
    Released on: 12/30/2017
    Last tested: 05/25/2018

  • Version: 1.0.9

    Tuesday, 03 October, 2017
    • Tested With: WordPress 4.8.2
    • Compatible With: WordPress 4.5+

    Added Support for WooCommerce Registration.

  • Version: 1.0.8

    Saturday, 15 July, 2017
    • Tested With: WordPress 4.8
    • Compatible With: WordPress 4.5+

    Add support for WP Members plugin.

  • Version: 1.0.7

    Friday, 07 July, 2017
    • Tested With: WordPress 4.8
    • Compatible With: WordPress 4.5+

    Updated to add support for Paid Memberships pro.
    Also changed the zip file name. to upgrade, please delete the old one and reupload it. It will allow automatic upgrades in future.

  • Version: 1.0.5

    Saturday, 20 May, 2017
    • Tested With: BuddyPress 2.8.2
    • Compatible With: BuddyPress 2.5+

    Updated to fix the method testing for correct match.

  • Version: 1.0.6

    Saturday, 20 May, 2017
    • Tested With: BuddyPress 2.8.2
    • Compatible With: BuddyPress 2.5+

    Make the matching insensitive for emails. The domain entries in the settings must be lowercase.

  • Version: 1.0.4

    Friday, 07 April, 2017
    • Tested With: BuddyPress 2.8.2
    • Compatible With: BuddyPress 2.5+

    Fix the matching algorithm to work better. Must upgrade if you are using an older version.

  • Version: 1.0.3

    Monday, 23 January, 2017
    • Tested With: WordPress 4.7.1
    • Compatible With: WordPress 4.0+

    Updated to avoid fatal errors due to pass by reference.
    Updated translation domain
    Code refraction.

  • Version: 1.0.2

    Friday, 19 June, 2015
    • Tested With: WordPress 4.2.2/Multisite 4.2.2/BuddyPress 2.3.2.1
    • Compatible With: WordPress 3.5+/WPMS 3.5+/BP 1.8+

    Refactored and updated. Fixes various notices and follows wp coding standards

  • Version: 1.0.1

    Saturday, 25 April, 2015
    • Tested With: WordPress 4.2/WordPress Multisite 4.2
    • Compatible With: WordPress 3.4+

    Allow sitewide/per blog settings depending on whether the plugin is network active or active on individual site
    Date: April 16, 2014
    Tested with WordPress 3.9

  • Version: 1.0

    Saturday, 11 February, 2012
    • Tested With: WordPress 3.3.1/WPMS 3.3.1/BuddyPress 1.5.4
    • Compatible With: WordPress 3.0+/WPMS 3.0+/BP 1.2+

    Initial release