Implementing honeypot field for contact form
This is an open discussion with 3 replies, filed under General.
Search
Actually, I have just got an idea to match for empty string in the validation rule:
/\A\z/
There's a discussion here on honeypots.
You might also like to consider the Can Of Spam extension.
Thanks! Even though my honey pot works fine for now, I think I'll switch over to COS.
Create an account or sign in to comment.
I made a simple contact form on the site I'm building, and I want to protect it by adding "honeypot" field.
My form is complete and it submits messages to "Messages" section and sends message by email to the site owner, but I'm not sure how I can make condition so that form doesn't save the message in case spambot has filled in honeypot field.
Any suggestions?