WordPress Email Registration Blacklist (CMRB) - Use Case - How to Block Reserved Usernames During Registration


Use Case - How to Block Reserved Usernames During Registration

Back to User Guide

Note: This guide uses:


Introduction

The WordPress Email Registration Blacklist plugin allows you to control who can register on your WordPress site by applying rules based on email addresses, domains, IP addresses, and usernames.

In addition to blocking registrations using blacklists or online lists, the plugin also supports whitelisting and prevents the use of reserved usernames during the registration process. For example, administrators can prevent users from registering with usernames of celebrities or other high-profile names, ensuring that the registration process remains professional and avoids impersonation.

Use Case Front-End

Example of blocking an exact username match in the username field (reserved username: 'britney'):

Example of blocking a fully matched username in the username field - WordPress Blacklist Plugin
Example of blocking a fully matched username in the username field

Example of blocking a partially matched username in the email field (reserved username: 'britney')

Example of blocking a partially matched username in the email - IP Blacklist WordPress Plugin
Example of blocking a partially matched username in the email

Use Case Assumptions

In this use case, we will show how to use the plugin to block specific usernames during the registration process. This includes preventing users from registering with reserved names, whether they are entered directly as a username or used as part of an email address.

It follows:

Installing the Plugin

The process is the same for all CM plugins and add-ons.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin → Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Learn more: Getting Started - Plugin Overview


Quick Recap

We recommend first reviewing other methods to secure the registration process on your site using the plugin:

Enabling Username Blacklist

To enable the feature, navigate to Admin Dashboard → CM E-Mail Registration Blacklist → General tab.

Navigation to the plugin settings - WordPress Email Blacklist Plugin
Navigation to the plugin settings

Find the section Username. The options are:

Username settings - Domain Blacklist Plugin
Username settings
  • Username Blacklist - If Enabled, the plugin will check usernames during the registration process and block the ones that are reserved by the admin.
  • Match with - Defines how the reserved username should be matched. Allows to choose between:
    • Whole String - Blocks registration only when the username exactly matches a reserved name. Example: if the reserved username is "britney", only "britney" will be blocked. Variations such as "britney123" will still be allowed.
    • Partial String - Blocks registration when the reserved username appears as part of a longer value. Example: if the reserved username is "britney", both "britney" and "britney123" will be blocked.
  • Check with - Defines which registration fields will be checked. Allows to choose between:
    • Username - Only the username field will be checked.
    • Email - The reserved username will be checked only within the email address. Example: if the reserved username is "britney", the email "britney@example.com" will be blocked.
    • Both - Both the username field and the email address field will be checked for reserved usernames.

Once configured, click the button Update at the bottom of the page.

Saving the settings - WordPress Restrict Email Domains
Saving the settings

Managing Reserved Usernames

To add and delete Reserved Usernames, navigate to the corresponding tab:

Navigation to the Reserved Usernames dashboard - WordPress Block Domain Registration
Navigation to the Reserved Usernames dashboard

Here you can see the following dashboard:

Reserved Usernames dashboard - WordPress Blacklist Plugin
Reserved Usernames dashboard

Usernames can be added in 2 ways - adding each username manually, or adding them in bulk by importing from a CSV file.

Adding usernames to the list - IP Blacklist WordPress Plugin
Adding usernames to the list
  1. Add new username - Allows to add usernames manually. Just type a username in the field and click Add.
  2. Import CSV - Allows to add usernames in bulk by importing them from a CSV file. Click Choose File, select the needed CSV file and click Import CSV. There are 2 import modes:
    1. Add to existing list - Adds usernames from a CSV file to the current list of usernames.
    2. Replace the whole list - Removes all existing usernames, and adds only the ones that are in the CSV file.

Below you can see a list of added by you usernames. Edit or Delete each name by using corresponding buttons:

Editing and deleting reserved usernames - WordPress Email Blacklist Plugin
Editing and deleting reserved usernames

To remove all added usernames, click the button Clear All at the top right.

Deleting all reserved usernames - Domain Blacklist Plugin
Deleting all reserved usernames

Once you finish editing the list of reserved usernames, click the button Update at the bottom of the page to save the changes.

Saving the settings - WordPress Restrict Email Domains
Saving the settings

Editing Front-end Messages

You can edit the front-end messages related to blocking registrations with reserved usernames. To do this, navigate to the Labels tab.

Navigation to the Labels settings - WordPress Block Domain Registration
Navigation to the Labels settings

Relevant labels can be found under the Username section. The labels are:

Labels related to reserved usernames - WordPress Blacklist Plugin
Labels related to reserved usernames
  • Username is in the Blacklist
  • Email username is in the Blacklist

Click the button Update after editing the labels.

Saving the settings - IP Blacklist WordPress Plugin
Saving the settings

How It Works on the Front-end

When a user tries to use a reserved username, the registration is prevented and a validation message is displayed. The exact behavior depends on the selected Match with and Check with options in the general plugin settings.

Below are two examples demonstrating how the plugin works on the front-end.

Example 1: Blocking an Exact Match in the Username Field

Settings:

  • Match with: Whole String
  • Check with: Username
  • Reserved username: britney

Scenario:

  • User enters britney as the username → registration is blocked.
  • User enters britney123 as the username → registration is allowed.

Front-end behavior:

When the blocked username is entered, a validation message appears, informing the user that the chosen name is reserved. This prevents the registration from being submitted until a different username is entered.

Example of blocking a fully matched username in the username field - WordPress Email Blacklist Plugin
Example of blocking a fully matched username in the username field

Example 2: Blocking Partial Matches in the Email Field

Settings:

  • Match with: Partial String
  • Check with: Email
  • Reserved username: britney

Scenario:

  • User enters britney@example.com → registration is blocked.
  • User enters britney123@example.com → registration is blocked.
  • User enters anyname@example.com → registration is allowed.

Front-end behavior:

The plugin scans the email address for any reserved usernames. If a reserved username is detected anywhere in the email, the registration is blocked and a validation message is displayed. Users must enter an email that does not contain a reserved username to proceed.

Example of blocking a partially matched username in the email - Domain Blacklist Plugin
Example of blocking a partially matched username in the email

These examples illustrate how the plugin enforces reserved username rules on the front-end. Depending on the settings, exact or partial matches are blocked in the username, email, or both fields.

End Result

Following instructions found in the plugin and guides, you should be able to configure the plugin to prevent user registrations using reserved usernames.

Use Case Front-End

Example of blocking an exact username match in the username field (reserved username: 'britney'):

Example of blocking a fully matched username in the username field - WordPress Restrict Email Domains
Example of blocking a fully matched username in the username field

Example of blocking a partially matched username in the email field (reserved username: 'britney')

Example of blocking a partially matched username in the email - WordPress Block Domain Registration
Example of blocking a partially matched username in the email

More information about the WordPress Email Registration Blacklist plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.