We are here to assist you 24/7

Would you like to talk about your online store ? Call Us Now :  +61 452 561 800

How to Prevent Bots From Spamming Your Magento Forms
 
8/27/2019 9:01 PM        

Add an unseen extra field or honey-pot

A honey-pot in terms of form submissions means that you're setting up an extra field that bots will see and fill out, but that your real human users won't. It's basically behind the scenes filtering step that protects your forms without adding any additional steps for the real people trying to join your lists.

You can implement this by adding HTML and specifically styling it out using CSS. It's true that some sophisticated bots can now read CSS and Javascript, but this is still an effective method and worth considering if you've got some basic programming skills. Here is a simple example:

CSS
.dispnon{display: none}

HTML
<input class="dispnon" name="field_name" type="text">

This gives you the basic idea - you'll want to make sure whatever field you've implemented as a honey-pot is not displayed on your actual form. If you get data that includes hidden information, you know it's a bot sign up. There are a variety of ways to do this and the code can be simple or more complex, an internet search can provide more examples if it's something you want to explore further.

Comment(s)

You must be logged in to post a comment.

click here to log in

« Back