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 asexample.com, or two opening curly braces is refused. - The domain, IP and name checks also run on the GraphQL
createCustomerandcreateCustomerV2mutations. - 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-blockercomposer require mconnect/module-spam-registration-blocker:^1.0bin/magento module:enable Mconnect_SpamRegistrationBlockerbin/magento setup:upgradebin/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
-

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.

-

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.

-

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
- Source code, README and issue tracker: Magento 2 Spam Registration Blocker on GitHub
- Blog post on finding and cleaning up fake accounts: Magento spam customer registrations: how to find them and stop the bots
- Need sign-up rules it doesn't have, such as approval for trade accounts? Ask our Magento module development team.
- Fake accounts are often one sign of a wider problem. See our Magento security audit and Magento support services, or contact us.
- More free extensions from our team: Magento 2 Payflow Guard, Magento 2 Store Health Check
Why Our Extension
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 ConsultationRecent Blog Post
- Selling Inside ChatGPT: What Shopify’s Agentic Storefronts Mean for Store Owners
- A 14-Point Magento Health Check to Run Before Something Breaks
- Shopify vs WooCommerce for a Growing Store: Which One Costs Less Over 3 Years
- Getting a Magento Payment Transaction Failed Email Every Day? It’s a Fake PayPal Response
- Moving From Magento to Shopify: What Happens to Your Customers, Passwords and Extensions
- How Much Does a Shopify Store Cost in 2026? Real Prices From Setup to Plus
- Magento vs Shopify in 2026: An Honest Comparison From a Team That Builds Both
- Cyber Monday Search Fails: When Shoppers Type the Right Thing and Find Nothing
- Should You Leave Magento in 2027? An Honest Answer From a Magento Agency
Recent Product
-
Mconnect Spam Registration Blocker for Magento 2 (Free)
-
Mconnect Store Health Check for Magento 2 (Free)
-
Mconnect Payflow Guard for Magento 2 (Free)
-
Shipping and Payment Method per Customer Group for Magento 2
-
Product Label, Ribbon Extension for Magento 2
-
Product Icon Logo Gallery Extension for Magento 2
-
Shipping Rules Extension for Magento 2
-
Product Attachment Extension for Magento 2 - File Upload
-
Free Shipping Bar with Side Mini Cart for Magento 2
-
Store Locator Google Map Extension for Magento 2
-
Track Order & Shipment Status Extension for Magento 2
-
Gift Card & Certificate Extension for Magento 2
-
Product Image Flipper Extension for Magento 2
-
Ajax Price Slider / Filter Extension for Magento 2
Subscribe to get discount coupons & new releases.
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 asexample.com, or two opening curly braces is refused. - The domain, IP and name checks also run on the GraphQL
createCustomerandcreateCustomerV2mutations. - 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-blockercomposer require mconnect/module-spam-registration-blocker:^1.0bin/magento module:enable Mconnect_SpamRegistrationBlockerbin/magento setup:upgradebin/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
-

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.

-

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.

-

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
- Source code, README and issue tracker: Magento 2 Spam Registration Blocker on GitHub
- Blog post on finding and cleaning up fake accounts: Magento spam customer registrations: how to find them and stop the bots
- Need sign-up rules it doesn't have, such as approval for trade accounts? Ask our Magento module development team.
- Fake accounts are often one sign of a wider problem. See our Magento security audit and Magento support services, or contact us.
- More free extensions from our team: Magento 2 Payflow Guard, Magento 2 Store Health Check
| 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. |
|---|
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!

