Eliminate Spam Bots Using the Honeypot Method

Today we’re highlighting a unique approach to eliminating spam bots provided by community member Joan Nin (Slack: @ninjoan).


Are you afraid that your email marketing efforts using Mautic will be affected by spam bots? Wish that there was another alternative that didn’t involve CAPTCHAs? Research shows that CAPTCHAs are having a negative impact on conversions.

The short story is that CAPTCHAs kill conversions. (source)

The pain is even bigger if you have a high traffic website and use external email services like Amazon SES, Sendgrid and Sparkpost. If you don’t control these spam bots, you won’t be in compliance with their spam rules.

You know what? You aren’t alone.

Honeypot Method

There is a way to get past this struggle, even if you are not a developer. The solution is to implement an approach called the Honeypot method, in your Mautic forms.

First, login to your Mautic instance. Go to Settings (cog icon), then Custom Fields. In the Custom Field window, add a new field.

In the Label field lets call this honey, click Save & Close, and continue to the next step.

The Setup

Now, let’s go to the forms we need to protect using the honeypot method. I would suggest going to the forms that are more prone to attack.

Add a new email field in the forms and select call it email2 and map that field to the honey field we created.

Now in Mautic v2.8+ we have a new field type called HTML Area, we’re going to use this field and add the follow code in the HTML area;

<style>
#mauticform_label_formname_honeypot { display:none; } 
#mauticform_input_formname_fieldlabel { display:none; } 
#mauticform_label_formname_fieldlabel { display:none; } 
</style>

This code will make the email2 field invisible to the human eye, but not for the spam bots.


NOTE: You have to replace the formname and fieldlabel with the form name without space and the field label in your honeypot filed you put in your Mautic.

Another approach to hiding the field would be to specify the Field Container Attribute of the email2 field you want to hide as:

style="display:none"


Now let’s start eliminating spam bots.

Eliminate the Spam

Go to all the campaigns you have attached to a Campaign form;

Now adding this condition at the first step of the campaign will check to see if the person that submits the form has information in the field “honey”. If the field is empty it is likely a real person. If it’s not empty, it is a spam-bot and we are going to delete it.

NOTE: If you use a Standalone Form and you have the action to send email to user you MUST disable this and create a campaign associate with this Standalone Form and replicate the step above.

Using the honeypot method will help you stop spam bots and the negative effect they have on your email marketing activities.


Mautic’s Rod Martin developed a short video tutorial to walk through this approach step-by-step;

 

Because of Mautic’s robust workflow, there are a number of different ways to accomplish any given task. This is simply one approach. Comment below if you know of others.

The Mautic community is filled with incredible individuals with a variety of backgrounds and experiences. We believe that each perspective represents unique value to the broader community. If you’re interested in becoming a contributor to our blog, please contact us.

You may also like...

Leave a Reply

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