- Version: 1.0
- Author: Adrian Kummerländer
- Build Date: 15th July 2012
- Requirements: Symphony 2.*
Simple filter to check if a question like "2 + 3 = ?" was correctly answered by the user. This can be used as a replacement for other spam prevention methods like captchas.
- Place the
spamquestionfilter
folder in your Symphonyextensions
directory. - Go to System > Extensions, select "Spam Question Filter", choose "Enable" from the with-selected menu, then click Apply.
- Go to Blueprints > Components and click the name of the event whose input you want to filter.
- In the "Filter Rules" field, select "Spam Question Filter"
- Save your event
- Add the custom event "Spamquestion" to the page containing your form
- Now you will have to add three new fields to your frontend form, see the expample below for details.
<form method="post" action="" enctype="multipart/form-data">
<!-- This is the anti-spam question -->
<xsl:value-of select="events/spamquestion/part1"/> plus <xsl:value-of select="events/spamquestion/part2"/> equals: <input name="fields[number]" type="text"/>
<!-- These field should be hidden so the user won't be confused by it -->
<input name="fields[spam]" type="text" value="{events/spamquestion/check}" />
</form>