Magento 2 Restrict Fake Registration

Magento 2 Restrict Fake Registration helps restricting fake users registration based on specific Email domains, first name, and last name character limits. 

 

Table of Content

  1. Extension Installation
  2. Configuration
  3. Google reCAPTHCA Settings
  4. Fake Registration Validation Message

 

  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy -f
    • php bin/magento cache:flush
  • That’s it.

 

  1. Configuration
    To configure the extension, log in to Magento 2 backend, move to Stores > Configuration > Restrict Fake Registration where you can find various settings to configure the extension.
  • Restrict Fake Registration: Enable the Restrict Fake Registration extension.
  • Restricted Email Domains: Enter comma-separated Email domains (TLDs to restrict fake registration from them.
  • First Name Character Limit: Enter the maximum character limit for the first name to restrict registration.
  • Last Name Character Limit: Enter the maximum character limit for the last name.


  

  1. Google reCAPTCHA Settings
    Enable Google reCAPTCHA v3 to avoid spam and bots from registering to your Magento 2 store.
  • Google reCAPTHCA: Enable Google reCAPTCHA to provide security against registration from spams.
  • Site Key: Enter the site key you got while registration with Google reCAPTCHA v3.
  • Secret Key: Enter the secret key you got while registration with Google reCAPTCHA v3.



 

 

  1. Fake Registration Validation Message
    After the successful extension configuration, whenever users try to register using the restricted Email domains or make use of first name and last name exceeding the character limits, a restriction message is displayed on the frontend. Also, Google reCAPTCHA v3 is enabled on the registration form for security from spam registrations.


​​​​​​​