Restrict New Users by Domain

Plugin Banner

Restrict New Users by Domain

by exportsmedia

Download
Description

Restrict New Users by Domain makes it easy to whitelist or blacklist email domains that new users can use when registering. If using the whitelist, only new users who enter an email domain on the whitelist will be allowed to create an account. If using the blacklist, a user who enters an email domain on the blacklist will not be allowed to register. This plugin is NOT multisite compatible.

Features

  • Easy to use settings page for adding domains
  • No limit on domains to restrict
  • Customize the error message for restricted domains
  • Uses built in WordPress actions, no CSS or JS

THIS PLUGIN DOES NOT WORK WITH MULTISITE

Restrict New Users by Domain makes it easy to whitelist or blacklist email domains that new users can use when registering. If using the whitelist, only new users who enter an email domain on the whitelist will be allowed to create an account. If using the blacklist, a user who enters an email domain on the blacklist will not be allowed to register.

  1. Upload the plugin files to the /wp-content/plugins/restrict-new-users-by-domain directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  1. The Restrict New Users by Domain settings page. It is accessed by going to Settings -> Restrict New Users by Domain

    The Restrict New Users by Domain settings page. It is accessed by going to Settings -> Restrict New Users by Domain

  2. The default error message for a restricted domain.

    The default error message for a restricted domain.

Installation Instructions

  1. Upload the plugin files to the /wp-content/plugins/restrict-new-users-by-domain directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

Can I use both the Whitelist and the Blacklist

No. Only one can be used. If both lists have domains saved in them, then only the whitelist will be used.

Can I change the default error message

Yes. You can customize the error message on the settings page.

Does this plugin work with Multisite

No. Multisite already has this ability built in. You do not need this plugin if you are running a multisite.

It works!! with WP v 5.4.2

By Ratnesh Sonar (ratneshsonar) on June 24, 2020

At first, I was not sure whether this plugin would work with the WP v5.4.2, but after installing I was surprised that this plugin still works. 🎉

1.0.2

  • Fix case sensitivity when validating domains as suggested by user @john168

1.0.1

  • Fix multisite activation error

1.0

  • Initial Release
Back to top