How to prevent spam in contact form 7 without using captcha

447 views Leave a comment

Have you been receiving tons of spam emails through contact form 7? Well, after you read this, this will not be the case anymore! We are going to use Akismet to filter spam mails.
Note: to apply this method, Akismet should be installed and active.
Into your dashboard, go to Contact, and choose the contact form and add these Akismet-related options in the appropriate field in the form

  • Akismet: author
    Add this option to the field that accepts the name of the sender.
    Example:
  • akismet:author_email
    Add this option to the field that accepts the email address of the sender.
    Example: [email* your-email akismet:author_email]
  • akismet:author_url
    Add this option to the field that accepts the URL of the sender.
    Example:

When at least one of those options are set (remember, it’s recommended to set all of the options for accurate judgment), Contact Form 7 will send Akismet all of the sender’s input and the information relating to the submitting activity. Akismet will then judge whether this submission is likely to be spam.

If Akismet judges the submission as spam, Contact Form 7 cancels the sending of mails and shows a message that says, “it failed to send the message.” You’ll see an orange border around the response message when it has been judged as spam.

How to prevent spam in contact form 7 without using captcha

Finally, to make sure it works, you can test it by sending “viagra-test-123″ as name of the sender. This test case will always be judged as spam.

Hi there, I am Rahman Sharif, an enthusiastic WordPress Developer with an eye on Design. I'am a WordPress Developer with 3 years of experience. You can follow me on Twitter and Google.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *