Search

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?

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details