{"id":16589,"date":"2017-05-26T12:29:07","date_gmt":"2017-05-26T12:29:07","guid":{"rendered":"https:\/\/www.mautic.org\/eliminate-spambots-using-the-honeypot-method\/"},"modified":"2024-12-18T11:49:42","modified_gmt":"2024-12-18T11:49:42","slug":"eliminate-spambots-using-the-honeypot-method","status":"publish","type":"post","link":"https:\/\/mautic.org\/blog\/eliminate-spambots-using-the-honeypot-method","title":{"rendered":"Eliminate Spam Bots Using the Honeypot Method"},"content":{"rendered":"<p><em><span style=\"font-size: 18px;\"> Today we&#8217;re highlighting a unique approach to eliminating spam bots provided by community member Joan Nin (Slack: @ninjoan).<\/span><\/em><\/p>\n<hr \/>\n<p>Are you afraid that your email marketing efforts using Mautic will be affected by spam bots? Wish that there was another alternative that didn&#8217;t involve CAPTCHAs? Research shows that CAPTCHAs are having a negative impact on conversions.<\/p>\n<blockquote>\n<p>The short story is that CAPTCHAs kill conversions. (<a href=\"https:\/\/medium.com\/rareview\/why-your-captcha-is-killing-conversions-f9be6fe17d1f\" target=\"_blank\" rel=\"noopener\">source<\/a>)<\/p>\n<\/blockquote>\n<p>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\u2019t control these spam bots, you won&#8217;t be in compliance with their spam rules.<\/p>\n<p>You know what? You aren\u2019t alone.<\/p>\n<h3>Honeypot Method<\/h3>\n<p>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.<\/p>\n<p>First, login to your Mautic instance. Go to <strong>Settings<\/strong> (cog icon), then <strong>Custom Fields<\/strong>. In the Custom Field window, add a new field.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\" size-full wp-image-14670\" src=\"https:\/\/www.mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.54.52-AM-copy-1024x495_12.png\" alt=\"Screen-Shot-2017-05-25-at-10.54.52-AM-copy-1024x495\" title=\"Screen-Shot-2017-05-25-at-10.54.52-AM-copy-1024x495\" width=\"1024\" height=\"495\" srcset=\"https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.54.52-AM-copy-1024x495_12.png 1024w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.54.52-AM-copy-1024x495_12-300x145.png 300w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.54.52-AM-copy-1024x495_12-768x371.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>In the <strong>Label<\/strong> field lets call this <strong>honey<\/strong>, click <strong>Save &#038; Close<\/strong>, and continue to the next step.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-14671\" src=\"https:\/\/www.mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12.png\" alt=\"Screen-Shot-2017-05-25-at-10.57.18-AM-copy\" title=\"Screen-Shot-2017-05-25-at-10.57.18-AM-copy\" width=\"2678\" height=\"1341\" srcset=\"https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12.png 2678w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12-300x150.png 300w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12-1024x513.png 1024w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12-768x385.png 768w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12-1536x769.png 1536w, https:\/\/mautic.org\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-25-at-10.57.18-AM-copy_12-2048x1026.png 2048w\" sizes=\"(max-width: 2678px) 100vw, 2678px\" \/><\/p>\n<h3>The Setup<\/h3>\n<p>Now, let&#8217;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.<\/p>\n<p>Add a new email field in the forms and select call it <strong>email2<\/strong> and map that field to the honey field we created.<\/p>\n<p><img decoding=\"async\" class=\" size-full wp-image-14672\" src=\"https:\/\/www.mautic.org\/wp-content\/uploads\/2017\/05\/Peek-2017-05-18-13-09_12.gif\" alt=\"Peek-2017-05-18-13-09\" title=\"Peek-2017-05-18-13-09\" width=\"836\" height=\"476\" \/><\/p>\n<p>Now in Mautic v2.8+ we have a new field type called <strong>HTML Area<\/strong>, we&#8217;re going to use this field and add the follow code in the HTML area;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-14673\" src=\"https:\/\/www.mautic.org\/wp-content\/uploads\/2017\/05\/Peek-2017-05-18-13-404_12.gif\" alt=\"Peek-2017-05-18-13-404\" title=\"Peek-2017-05-18-13-404\" width=\"836\" height=\"476\" \/><\/p>\n<pre><style>\n#mauticform_label_formname_honeypot { display:none; } \n#mauticform_input_formname_fieldlabel { display:none; } \n#mauticform_label_formname_fieldlabel { display:none; } \n<\/style><\/pre>\n<p>This code will make the <strong>email2<\/strong> field invisible to the human eye, but not for the spam bots.<\/p>\n<hr \/>\n<p><em><strong>NOTE:<\/strong> You have to replace the <strong>formname<\/strong> and <strong>fieldlabel<\/strong> with the form name without space and the field label in your honeypot filed you put in your Mautic.<\/em><\/p>\n<p>Another approach to hiding the field would be to specify the <strong>Field Container Attribute<\/strong> of the <strong>email2<\/strong> field you want to hide as:<\/p>\n<pre>style=\"display:none\"<\/pre>\n<hr \/>\n<p>Now let&#8217;s start eliminating spam bots.<\/p>\n<h3>Eliminate the Spam<\/h3>\n<p>Go to all the campaigns you have attached to a Campaign form;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-14674\" src=\"https:\/\/www.mautic.org\/wp-content\/uploads\/2017\/05\/Peek-2017-05-18-16-54_12.gif\" alt=\"Peek-2017-05-18-16-54\" title=\"Peek-2017-05-18-16-54\" width=\"836\" height=\"476\" \/><\/p>\n<p>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 &#8220;honey&#8221;. If the field is empty it is likely a real person. If it&#8217;s not empty, it is a spam-bot and we are going to delete it.<\/p>\n<p><strong>NOTE:<\/strong> If you use a <strong>Standalone Form<\/strong> and you have the action to send email to user you MUST disable this and create a campaign associate with this <strong>Standalone Form<\/strong> and replicate the step above.<\/p>\n<p>Using the honeypot method will help you stop spam bots and the negative effect they have on your email marketing activities.<\/p>\n<hr \/>\n<p>Mautic&#8217;s Rod Martin developed a short video tutorial to walk through this approach step-by-step;<\/p>\n<p><script async=\"\" consent-original-src-_=\"https:\/\/fast.wistia.com\/embed\/medias\/udumoylszq.jsonp\" consent-required=\"21231\" consent-by=\"services\" consent-id=\"21232\" consent-original-type-_=\"application\/javascript\" type=\"application\/consent\" ><\/script><script async=\"\" consent-original-src-_=\"https:\/\/fast.wistia.com\/assets\/external\/E-v1.js\" consent-required=\"21231\" consent-by=\"services\" consent-id=\"21232\" consent-original-type-_=\"application\/javascript\" type=\"application\/consent\"><\/script><\/p>\n<div class=\"wistia_responsive_padding\" style=\"padding: 56.25% 0 0 0; position: relative;\">\n<div class=\"wistia_responsive_wrapper\" style=\"height: 100%; left: 0; position: absolute; top: 0; width: 100%;\">\n<div class=\"wistia_embed wistia_async_udumoylszq videoFoam=true\" style=\"height: 100%; width: 100%;\"><\/div>\n<\/div>\n<\/div>\n<hr \/>\n<p><em>Because of Mautic&#8217;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.<\/em><\/p>\n<p><em><br \/>\n<\/em><em>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&#8217;re interested in becoming a contributor to our blog, please <a href=\"mailto:info@mautic.org\">contact us<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you afraid that your email marketing efforts using Mautic will be affected by spam bots?\u00a0Increase your conversion rate with this approach.<\/p>\n","protected":false},"author":50,"featured_media":16031,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","footnotes":""},"categories":[1495],"tags":[764,824,896,912,918,956,957,1009,1011,1210,1211,1247],"class_list":["post-16589","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-for-integrators","tag-betteremail","tag-conversions","tag-emailspam","tag-field","tag-forms","tag-honey","tag-how-to","tag-marketing","tag-marketingautomation","tag-spam","tag-spambots","tag-tip"],"acf":[],"_links":{"self":[{"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/posts\/16589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/comments?post=16589"}],"version-history":[{"count":1,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/posts\/16589\/revisions"}],"predecessor-version":[{"id":17054,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/posts\/16589\/revisions\/17054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/media\/16031"}],"wp:attachment":[{"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/media?parent=16589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/categories?post=16589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mautic.org\/wp-json\/wp\/v2\/tags?post=16589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}