← All modules

Magento 2 module

Customer Create Check

Blocks spam registrations by checking name and address fields of new customer accounts against allow and deny patterns; web addresses in names are rejected by default.

Spam bots often create customer accounts with web addresses or advertising text in the name fields, which then end up in welcome emails and in your customer list. This module checks the fields of new registrations against patterns you define. Registrations that do not pass are refused with an error message, and the form keeps the entered data.

Features

  • Checks the name fields of the registration form: prefix, first name, middle name, last name and suffix.
  • When an account is created after a guest order, the address taken over from the order is checked as well: names, street, postcode, city, company, telephone and fax.
  • Per field an “Allow Pattern” (the value must match) and a “Deny Pattern” (the value must not match), each with its own on/off switch.
  • Preset: first name, middle name and last name are checked against a pattern that rejects web addresses and domain names.
  • Refused registrations show the message “We can’t save the customer.”

Configuration

Go to Stores > Configuration > Infrangible Solutions > Customer Create Check. There is one group per field (Prefix, Firstname, Middle Name, Lastname, Suffix, Street, Postcode, City, Company, Telephone, Fax), each with “Allow Check”, “Allow Pattern”, “Deny Check” and “Deny Pattern”. The settings can be changed per website and store view.

Good to know

Patterns are regular expressions, so changes beyond the preset may need help from your agency. The checks apply to registrations in the storefront, not to accounts created in the admin.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-customer-create-check

Then enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.