Spam Russian Customer Accounts

This week I was called about some spam Russian customer accounts all the sudden appearing in my client’s Magento backend. The first and last name fields were filled with Russian text along with “mostly” Russian email addresses. A Google pop-up was coming up asking to translate the page from the Russian language to English.

The spambots were even getting past the Captcha.

I was able to quickly fix the problem. And in this article, I will show you how to stop and remove the unwanted spam Russian accounts from Magento.

Here is an example of what was showing up in the Magento customer module as the first name and last name of the spam accounts:
Spam Russian Customer Accounts in Magento Backend

How to stop the Russian Customer Accounts

The easiest and quickest way to stop these spam accounts from appearing in the Magento backend is to change the maximum number of characters for the first name and last name field in Magento.

First, you will need to head over to your cPanel and access phpMyAdmin. Here you will find your Magento database located on the left-hand side, click on it. Once you click on it you’ll see a list of tables within the database, look for customer_eav_attribute. Find the rows with attribute_id 5 and attribute_id 7. Attribute 5 is for first name and attribute 7 is for last name. Click on the attribute 5 row. You will see the text a:2:{s:15:”max_text_length”;i:255;s:15:”min_text_length”;i:1;} appear. Change the number from 255 to 55 as the max number of characters for the first name field. 55 characters seems to be an ample number of characters for this field and low enough to eliminate the unwanted spam accounts. Click on Go to save. Now do the same thing for attribute 7, last name.

If you test it out on your Magento frontend by setting up a new customer and using more than 55 characters in either the first name field or the last name field you’ll get one or both of the below warnings.
“First Name” length must be equal or less than 55 characters.
“Last Name” length must be equal or less than 55 characters.

This process has put a stop to the unwanted Russian customer accounts appearing in the backend of Magento.

Now all that’s left is to delete the spam accounts from your Magento backend.

Elyssa McGregor

Hi! I'm Elyssa McGregor. I love helping people succeed online and promoting businesses with our wide range of promotional products. I have a love for search engine optimization (SEO) and getting companies out there on the world wide web. How can I help you?

View all posts

Add comment

Your email address will not be published. Required fields are marked *