Akismet

Akismet is a widely used spam filtering service that continuously learns from content marked as spam across all websites.

In order to use this plugin, you must have an Akismet account. If your site is non-commercial, you can use their services for free. Once you have an account, grab your API key to configure this plugin.

Plugin configuration

Akismet can use any of the following data from your form submissions to aid in detecting spam:

  • Author Name - name of person submitting form
  • Author Email - email of person submitting form
  • Author URL - website URL of person submittion form
  • Content - the main content of the form, usually a textarea field
  • Honeypot - a hidden field to catch automated bots

Using the following form as an example:

<form action="https://postform.com/s/FORM_ID" method="POST">
  <div>
    <label for="name">Name</label>
    <input id="name" name="yourName" />
  </div>
  <div>
    <label for="email">Email</label>
    <input id="email" name="yourEmail" />
  </div>
  <div style="display: none">
    <label for="phoneNumber">Phone Number</label>
    <input id="phoneNumber" name="yourPhoneNumber" />
  </div>
  <div>
    <label for="website">Website</label>
    <input id="website" name="yourWebsite" />
  </div>
  <div>
    <label for="message">Message</label>
    <textarea id="message" name="message"></textarea>
  </div>
  <button type="submit">Submit</button>
</form>

The plugin can be configured as shown below. Note the input names from the HTML form are entered in the appropriate configuration field. By doing this, Postform knows how to access and send the data to Akismet.

Configure Plugin

The configuration fields of this plugin correspond to a parameter of Akismet's API. For more details, check out their API docs: https://akismet.com/development/api/#comment-check