WordPress Email Registration Blacklist (CMRB) - Use Case - How to Prevent Fake User Registrations with ChatGPT Integration


How to Prevent Fake User Registrations with ChatGPT Integration

Back to User Guide

Note: This guide uses:

Optionally, for adding custom fields to the registration form:


Introduction

The WordPress Email Registration Blacklist plugin allows you to block users who try to register on your WordPress site using an email from a domain/email/IP defined in your blacklists/online lists. It also allows you to approve only users from a whitelist.

The plugin also integrates with ChatGPT in order to detect and reject registrations with fake names and fake email domains.

ChatGPT analyzes the entered first name, last name, and email domain to determine whether they look realistic or randomly generated, and automatically decides whether the registration should be accepted or rejected.

Use Case Front-End

Domain verification:

Domain verification - WordPress Blacklist Plugin
Domain verification

Name verification:

Name verification - IP Blacklist WordPress Plugin
Name verification

Use Case Assumptions

In this use case, we will show how to configure the ChatGPT integration to prevent user registrations with fake data on your site.

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 you first to get to know about other methods of how to secure the registration process on your site using the plugin:

What is ChatGPT?

ChatGPT is an AI chatbot developed by OpenAI that uses natural language processing and machine learning to generate human-like responses based on user input.

ChatGPT processes text using Tokens - small units of words or characters that the model uses for understanding language. For English text, one token is roughly four characters or about three-quarters of a word. Each time the plugin sends a request to ChatGPT, tokens are consumed.

To use the API, you need to have a valid payment method on your OpenAI account. Every request consumes tokens, which are billed according to OpenAI’s pricing.

To connect your forum with ChatGPT, you need to obtain an API key from your OpenAI account.

Creating API Key

To get the API key, please do the following:

  1. Go to the OpenAI Platform.
  2. Sign in to your OpenAI account or create a new one.
  3. Open your profile menu (top right corner) and select View API keys.
  4. Click Create new secret key.
  5. Copy the generated key and store it in a safe place - it provides access to your account.

Because this process is handled by a third-party service, the exact interface might change from time to time. Follow the instructions shown on the OpenAI website when creating your API key.

Enabling ChatGPT Integration On Your Site

First, we need to enable the integration with ChatGPT. To configure it, 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

Scroll down and find the section ChatGPT. The options are:

ChatGPT integration settings - Domain Blacklist Plugin
ChatGPT integration settings
  • Enable ChatGPT - Enabling this option allows ChatGPT to check if the email domain or First and Last name entered by the user in the registration form look like real ones.
  • ChatGPT API Key - In order to make the feature work, you need to enter your OpenAI API. It can be obtained on OpenAI site.
  • ChatGPT Model - This option allows you to choose a ChatGPT model. You can see the list of supported models after entering the API key and saving the changes.
  • Enable Domain Verification - Turn on this option if you want ChatGPT to check if the email domain looks like real. It allows to prevent entering fake emails with random characters.
  • Enable Name Verification - Turn on this option if you want ChatGPT to check if the First name and Last name entered by user look like real. Have a note that the standard WordPress registration form doesn't contain these fields by default, so you might need a third-party plugin to add these fields to the registration form. These fields should correspond the meta keys "first_name" and "last_name".

Click the button Update to save the changes after configuring the settings.

Saving the changes - WordPress Restrict Email Domains
Saving the changes

This is how the settings look like after our configuration:

Final configuration - WordPress Block Domain Registration
Final configuration

Now let's check the verification process.

Note: Since the plugin needs to send the registration data to ChatGPT and wait for the AI response, the registration process may take a few seconds more than usual.

Domain Verification

Example: if the user enters the email "jack@difvnjkn.jdf", he will not be registered, as ChatGPT will consider the domain of that email as fake.

Domain verification example - WordPress Blacklist Plugin
Domain verification example

Name Verification

WordPress provides fields for adding First Name and Last Name in the user profile, and these fields have the meta keys "first_name" and "last_name". But the standard WordPress registration form doesn't contain the First and Last name fields by default, so you might need a third-party plugin to add these fields to the registration form.

First and last name fields meta keys - IP Blacklist WordPress Plugin
First and last name fields meta keys

In our use case we will use the WordPress Registration Form Plugin to add custom fields and check the verification there. This plugin allows your users to login and register to your site via a custom popup forms.

To do this, navigate to Admin Dashboard → CM Registration Pro → Profile Fields.

Navigation to the form builder - WordPress Email Blacklist Plugin
Navigation to the form builder

There is a form builder, which allows to add different field types and customize them to fit your needs.

Adding custom fields in the form builder - Domain Blacklist Plugin
Adding custom fields in the form builder

This way we add 2 custom fields for first and last name with relevant meta keys:

Custom fields - WordPress Restrict Email Domains
Custom fields

Now let's check how verification works on the front-end.

We will fill the First Name and Last Name fields with random letters and numbers and try to register. As these are obviously not real names, the registration will fail:

Name verification example - WordPress Block Domain Registration
Name verification example

Editing Error Messages

You can customize the messages which are displayed on the front-end - either edit them or translate them into another language.

To do this, navigate to Admin Dashboard → CM E-Mail Registration Blacklist → Labels tab.

Navigation to the labels settings - WordPress Email Registration Blacklist
Navigation to the labels settings

Scroll down to the section ChatGPT. There you can find 2 editable labels:

Editing labels - WordPress Blacklist Plugin
Editing labels

End Result

Following instructions found in the plugin and guides, you should be able to configure the ChatGPT integration to prevent user registrations with fake data on your site.

Use Case Front-End

Domain verification:

Domain verification example - IP Blacklist WordPress Plugin
Domain verification example

Name verification:

Name verification example - WordPress Email Blacklist Plugin
Name verification example

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.