Prevent Spam Register in M1 & M2 Store

Prevent Spam Register in M1 & M2 Store

April 27, 2019 / Nirav Shah

Validation Rules to Prevent Spam Account Registration in Magento 1 and Magento 2 Store

Customer registration form in Magento 1 and Magento 2 often fall the victims of spam attacks which may harm the quality of data in the customer database management systems, therefore, making it difficult for the admin to identify their real customers.

As a result, These attacks can overwhelm your Magento 1 and Magento 2 store and have a negative impact on the search engine rankings.

Based on experience with Magento 1 and Magento 2 stores, the target email domains for these spam mails are @mail.ru, @gmail.ru, @list.ru and many more.

The fake account registrations are very easy to spot, they contain advertising text and links in the name and address details with the hope that the email address they enter will then give visibility to their links.

Fake User Registration bots simply bypass captcha.

There is a solution you can implement to prevent spam/fake account registration in Magento 1 and Magento 2 Store.

Solution

We need to update field “validate_rules” from the database.

Find the table name with “customer_eav_attribute”, update record with attribute_id=5(first name) and attribute_id=7(last name) and replace 255 with 25.

So Before updating the record :
Magento 1:
a:2:{s:15:”max_text_length”;i:255;s:15:”min_text_length”;i:1;}

Magento 2:
{“max_text_length”:255,”min_text_length”:1}

After updated record :
Magento 1:
a:2:{s:15:”max_text_length”;i:25;s:15:”min_text_length”;i:1;}

Magento 2:
{“max_text_length”:25,”min_text_length”:1}

Customer Registration Page

Checkout Page Customer Registration

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let Us Talk About Your AWS Development Requirements

    Have queries about your AWS project ideas and concepts? Please drop in your project details to discuss with our AWS experts, professionals and consultants.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project