Guest Entries

Protect your guest entries from annoying spam

Guest Entries

Shield can help you protect against Spam in your guest entries.

  1. Follow the Guest Entries setup guide, if you haven’t already
  2. Make sure Guest Entries support is enabled in your Shield Config
  3. Add the hidden input fields to your form so Shield knows what to validate

Setup #

To setup Shield to protect your guest entries, the following hidden fields must be defined.

<input type="hidden" name="shield[emailField]" value="{guestEntryEmailFieldHandle}">
<input type="hidden" name="shield[authorField]" value="{guestEntryFullNameFieldHandle}">
<input type="hidden" name="shield[contentField]" value="{guestEntryBodyFieldHandle}">

These fields need to be defined so that Shield knows what attributes to look for in the guest entry in order to prepare the data to pass along to [Akismet][akismet] for validation.

When the form is submitted and the Guest Entry is validated, the entry will be handed to Shield which will then grab the shield[emailField|authorField|contentField] values containing twig placeholders which will then be replaced by attribute values found in the EntryModel

Note that the emailField and authorField are not required.

[Work In Progress]

Please forgive my typos, partial docs, and overall mess.

I'm working hard to get everything moved over and provide amazing docs for you, my loyal supporter.

—Selvin Ortiz

Let’s Work Together


If you’d like to work together, have questions about any of my Craft CMS Plugins or just want to say hello, send me an email.

Email Me