Mconnect Spam Registration Blocker for Magento 2 (Free)
   

Magento 2 Spam Registration Blocker extension

Mconnect Spam Registration Blocker for Magento 2 (Free)

Free module that stops bots from creating fake customer accounts on your Magento 2 store, with a hidden honeypot field, a signed form timer, a disposable email block, a per-IP limit and a check for links in names.

  • Hidden honeypot field and signed form timer on the registration form
  • Blocks 211 disposable email domains, plus your own list
  • Limits new accounts per IP address, default 5 per hour
  • Read-only report of suspect accounts already in your store
  • Free and open source (MIT license)
  • InstantHelp Center
  • 90 DaysFree Support
  • FreeLifetime Updates
  • Meet MagentoStandards

Product Description

Bots post to the Magento registration form and to the GraphQL createCustomer mutation all day. The result is hundreds or thousands of fake customers with throwaway email addresses, names that carry links such as www.example.com, or Magento template code in double curly braces. Each sign-up can send a welcome email to an address nobody reads, which hurts your sender reputation. CAPTCHA helps, but many stores turn it off because real shoppers find it annoying.

Mconnect Spam Registration Blocker for Magento 2 adds checks that shoppers never see. A hidden honeypot field and a signed form timer catch bots on the storefront form. A disposable email domain list, a per-IP limit and a check for links in names apply to the storefront form and to GraphQL sign-ups.

A refused sign-up gets one neutral message, "We could not create your account. Please try again.", whatever the reason, so bots learn nothing from it. Each refusal goes into var/log/spam_registration_blocker.log with the reason, the channel, the IP address and the email domain. The full email address is not logged.

Video guide

What the module does

  • Honeypot: a text field placed off-screen on /customer/account/create/. People never see it. A post with text in it is refused.
  • Signed form timer: a hidden timestamp signed with an HMAC (SHA-256) keyed by your store's crypt key. A post is refused when the timestamp is missing, forged, older than 24 hours, or sent faster than the minimum time (default 3 seconds). A bot that posts straight to /customer/account/createpost/ without loading the form has no valid timestamp.
  • Disposable email domains: a bundled list of 211 throwaway mail services, such as mailinator.com, yopmail.com and 10minutemail.com. Subdomains match too. You can add your own domains and allow domains. The allow list wins.
  • Accounts per IP address: default 5 new accounts per IP in 60 minutes, counted in the Magento cache.
  • Links in names: a first or last name with http, www., a domain such as example.com, or two opening curly braces is refused.
  • The domain, IP and name checks also run on the GraphQL createCustomer and createCustomerV2 mutations.
  • A read-only report, bin/magento mconnect:spam:list --days=30, lists recent customers with no orders that use a disposable domain or have a link in their name. It changes and deletes nothing.

Settings

Stores > Configuration > M-Connect Media > Spam Registration Blocker. Every setting can be changed per website and store view.

  • Enabled (default Yes): master switch. When set to No, no check runs and the registration form is unchanged.
  • Honeypot Field (default Yes) and Form Timer (default Yes, minimum 3 seconds): storefront form only.
  • Disposable Email Domains (default Yes), with Extra Domains to Block and Domains to Always Allow, one per line.
  • Accounts per IP Address (default Yes): maximum 5 accounts in a 60 minute window.
  • Block Links in First or Last Name (default Yes).

What it does not do

The honeypot and the timer do not apply to GraphQL, because a headless or PWA front end would have to send those fields. GraphQL sign-ups get the domain, name and IP checks only. The REST endpoint POST /V1/customers is not covered at all; it is open to guests by default, so restrict it at your web server or firewall if you do not use it. The module's form block is not cacheable, so the registration page stays out of the full page cache while the module is on (on a standard install the Magento_Captcha block already does the same). Your theme must print the form.additional.info container inside the registration form; Luma and themes based on it do. Other sign-up forms that post to customer/account/createpost without the hidden fields are refused while the timer is on. The per-IP count is approximate and resets when the cache is flushed. The domain list will never be complete. The module does not delete existing fake accounts, and it sends no data to any outside server.

Install

Install it with Composer from GitHub:

  • composer config repositories.magento2-spam-registration-blocker vcs https://github.com/mcsventures/magento2-spam-registration-blocker
  • composer require mconnect/module-spam-registration-blocker:^1.0
  • bin/magento module:enable Mconnect_SpamRegistrationBlocker
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile (production mode only)
  • bin/magento cache:flush

You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/SpamRegistrationBlocker. After install, open the registration page and check that the page source contains mcsrb_website and mcsrb_token. The module is free under the MIT license.

Screenshots

  • Spam Registration Blocker for Magento 2: A sign-up with a throwaway email is refused

    A sign-up with a throwaway email is refused

    Someone tried to register with a mailinator.com address. The account was not created and the form shows a plain error that does not tell a bot which check it failed.

  • Hidden checks on the registration form

    The form gets a hidden field that people never see and a signed timestamp. Bots that fill every field, or post the form within 3 seconds, are refused.

    Spam Registration Blocker for Magento 2: Hidden checks on the registration form
  • Spam Registration Blocker for Magento 2: Every refused sign-up is logged

    Every refused sign-up is logged

    Each refusal is written to var/log/spam_registration_blocker.log with the reason, the channel, the IP address and the email domain, but not the full email address.

  • Find spam accounts that signed up before

    bin/magento mconnect:spam:list lists recent customers with a disposable email domain or a link in the name and no orders. It only reports, so you decide what to delete.

    Spam Registration Blocker for Magento 2: Find spam accounts that signed up before
  • Spam Registration Blocker for Magento 2: Settings

    Settings

    Each check has its own switch: hidden field, form timer, disposable domains with your own block and allow lists, accounts per IP address, and links in names.

Links

Why Our Extension

Complete eCommerce Solutions

Need help in Magento website?

Do you have a question, problems or custom requirements for your website? Big or small, No matter, we're here if you feel you need support, help or consultation. Talk to us!

Get Free Consultation

Product Description

Bots post to the Magento registration form and to the GraphQL createCustomer mutation all day. The result is hundreds or thousands of fake customers with throwaway email addresses, names that carry links such as www.example.com, or Magento template code in double curly braces. Each sign-up can send a welcome email to an address nobody reads, which hurts your sender reputation. CAPTCHA helps, but many stores turn it off because real shoppers find it annoying.

Mconnect Spam Registration Blocker for Magento 2 adds checks that shoppers never see. A hidden honeypot field and a signed form timer catch bots on the storefront form. A disposable email domain list, a per-IP limit and a check for links in names apply to the storefront form and to GraphQL sign-ups.

A refused sign-up gets one neutral message, "We could not create your account. Please try again.", whatever the reason, so bots learn nothing from it. Each refusal goes into var/log/spam_registration_blocker.log with the reason, the channel, the IP address and the email domain. The full email address is not logged.

Video guide

What the module does

  • Honeypot: a text field placed off-screen on /customer/account/create/. People never see it. A post with text in it is refused.
  • Signed form timer: a hidden timestamp signed with an HMAC (SHA-256) keyed by your store's crypt key. A post is refused when the timestamp is missing, forged, older than 24 hours, or sent faster than the minimum time (default 3 seconds). A bot that posts straight to /customer/account/createpost/ without loading the form has no valid timestamp.
  • Disposable email domains: a bundled list of 211 throwaway mail services, such as mailinator.com, yopmail.com and 10minutemail.com. Subdomains match too. You can add your own domains and allow domains. The allow list wins.
  • Accounts per IP address: default 5 new accounts per IP in 60 minutes, counted in the Magento cache.
  • Links in names: a first or last name with http, www., a domain such as example.com, or two opening curly braces is refused.
  • The domain, IP and name checks also run on the GraphQL createCustomer and createCustomerV2 mutations.
  • A read-only report, bin/magento mconnect:spam:list --days=30, lists recent customers with no orders that use a disposable domain or have a link in their name. It changes and deletes nothing.

Settings

Stores > Configuration > M-Connect Media > Spam Registration Blocker. Every setting can be changed per website and store view.

  • Enabled (default Yes): master switch. When set to No, no check runs and the registration form is unchanged.
  • Honeypot Field (default Yes) and Form Timer (default Yes, minimum 3 seconds): storefront form only.
  • Disposable Email Domains (default Yes), with Extra Domains to Block and Domains to Always Allow, one per line.
  • Accounts per IP Address (default Yes): maximum 5 accounts in a 60 minute window.
  • Block Links in First or Last Name (default Yes).

What it does not do

The honeypot and the timer do not apply to GraphQL, because a headless or PWA front end would have to send those fields. GraphQL sign-ups get the domain, name and IP checks only. The REST endpoint POST /V1/customers is not covered at all; it is open to guests by default, so restrict it at your web server or firewall if you do not use it. The module's form block is not cacheable, so the registration page stays out of the full page cache while the module is on (on a standard install the Magento_Captcha block already does the same). Your theme must print the form.additional.info container inside the registration form; Luma and themes based on it do. Other sign-up forms that post to customer/account/createpost without the hidden fields are refused while the timer is on. The per-IP count is approximate and resets when the cache is flushed. The domain list will never be complete. The module does not delete existing fake accounts, and it sends no data to any outside server.

Install

Install it with Composer from GitHub:

  • composer config repositories.magento2-spam-registration-blocker vcs https://github.com/mcsventures/magento2-spam-registration-blocker
  • composer require mconnect/module-spam-registration-blocker:^1.0
  • bin/magento module:enable Mconnect_SpamRegistrationBlocker
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile (production mode only)
  • bin/magento cache:flush

You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/SpamRegistrationBlocker. After install, open the registration page and check that the page source contains mcsrb_website and mcsrb_token. The module is free under the MIT license.

Screenshots

  • Spam Registration Blocker for Magento 2: A sign-up with a throwaway email is refused

    A sign-up with a throwaway email is refused

    Someone tried to register with a mailinator.com address. The account was not created and the form shows a plain error that does not tell a bot which check it failed.

  • Hidden checks on the registration form

    The form gets a hidden field that people never see and a signed timestamp. Bots that fill every field, or post the form within 3 seconds, are refused.

    Spam Registration Blocker for Magento 2: Hidden checks on the registration form
  • Spam Registration Blocker for Magento 2: Every refused sign-up is logged

    Every refused sign-up is logged

    Each refusal is written to var/log/spam_registration_blocker.log with the reason, the channel, the IP address and the email domain, but not the full email address.

  • Find spam accounts that signed up before

    bin/magento mconnect:spam:list lists recent customers with a disposable email domain or a link in the name and no orders. It only reports, so you decide what to delete.

    Spam Registration Blocker for Magento 2: Find spam accounts that signed up before
  • Spam Registration Blocker for Magento 2: Settings

    Settings

    Each check has its own switch: hidden field, form timer, disposable domains with your own block and allow lists, accounts per IP address, and links in names.

Links

More Information
List Page Point Stops bot sign-ups on the registration form and GraphQL with a honeypot, a form timer, a disposable email block and a per-IP limit.
$0.00

Pre-Sale Enquiry

Do you have an question? Please ask us. We will respond you within 24 hours. Create a support ticket.

Need Customization?

Please share your business specific extension customization requirement. Talk to our Magento developer!