How to Use Akismet to Protect Your Contact Form

by Lisa on October 19, 2011

Spammers often use contact forms as a way to spam your email. It’s easy to prevent that using the Contact Form 7 and Akismet plugins – Contact Form 7 is a simple, free plugin for creating forms, and Akismet is already installed in WordPress by default

Here’s how to use Akismet to protect your Contact Form 7 Forms:

1. Activate Akismet from your WordPress plugins menu

2. Install and activate the Contact Form 7 plugin

3. Create a simple contact form.

4. In the form options page, remove the auto-generated code and paste this in its place:

 <p>Your Name (required)<br />
    [text* your-name akismet:author class:sidebarinput]  </p>
 
<p>Your Email (required)<br />
    [email* your-email akismet:author_email class:sidebarinput ] </p>
 
<p>Subject<br />
    [text your-subject akismet:author_subject class:sidebarinput ] </p>
 
<p>Your Message<br />
    [textarea your-message class:sidebarinput] </p>
 
<p>[submit "Send"]</p>

5. Save your changes, and you’re done.

Now you can add this new contact form to a page, and Akismet will protect it from spammers.

Questions? Comments? Yeah-buts? Share in the comments section below.

Share with a friend
  • Twitter
  • Facebook
  • LinkedIn
  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Print
  • email
  • RSS
  • Add to favorites

{ 4 comments… read them below or add one }

Sarah - Dodeline Design October 25, 2011 at 10:08 am

Great & useful information! Thanks for sharing. I really like your site :-) Found you from your comment on Scoutie Girl!
Sarah – Dodeline Design recently posted..Positive Feedback

Reply

Lisa October 25, 2011 at 3:51 pm

Thanks, Sarah! Glad you found your way over here. Come back anytime. :)

Reply

Aasish March 27, 2012 at 4:51 am

Hey Lisa,

Thanks for this info. I use another plugin called “Custom Contact Forms”. Can you help me out with integrating akismet into this plugin? Thanks!

Reply

Lisa March 27, 2012 at 12:47 pm

Hi Aasish – I do’t use that plugin so I can’t say whether or not it would integrate with Akismet. It does, however, seem to support CAPTCHA, which would essentially do the same thing – just in a different way.

Reply

Leave a Comment

CommentLuv badge

Previous post:

Next post: