Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Form Verification


Go to End


11 Posts   6430 Views

Avatar
redking

43 Posts

1 September 2008 at 6:50am

Hi,

Does anyone know of a way to incorporated form verification to prevent spam form submissions? Something along the lines of the the random word images that the user has to enter in to prove they are human. See screenshot for example of what I'm talking about.

Thanks!

Avatar
Liam

Community Member, 470 Posts

1 September 2008 at 11:44am

There is nothing built in by default.

I'd take a look at http://recaptcha.net/captcha.html as it's probably the simplest.

Avatar
Willr

Forum Moderator, 5523 Posts

1 September 2008 at 3:27pm

You can try out ingos module for recaptcha - http://open.silverstripe.com/browser/modules/recaptcha/trunk or if you need basic protection for your page comments you can add this to your _config.php for the standard MathSpam protection - MathSpamProtection::setEnabled();

Avatar
Liam

Community Member, 470 Posts

2 September 2008 at 1:51am

Does the MathSpamProtection work in 2.2.2 or just trunk builds? Last time I went to use it, it wasn't working but this was a long time ago, probably with 2.2.1 or earlier.

Avatar
Willr

Forum Moderator, 5523 Posts

2 September 2008 at 9:30am

My sites on 2.2.2 and it seems to work fine.

Avatar
NickJacobs

Community Member, 148 Posts

2 September 2008 at 12:22pm

Hi, can you please let me know how to add form protection using MathSpamProtection...or is there a document somewhere.

Cheers

Avatar
Willr

Forum Moderator, 5523 Posts

2 September 2008 at 12:37pm

Its pretty simple to add it - http://doc.silverstripe.com/doku.php?id=mathspamprotection

You just need to add MathSpamProtection::setEnabled(); to your _config.php file and it will add the Math Spam question to your comment form

Avatar
NickJacobs

Community Member, 148 Posts

2 September 2008 at 1:07pm

Will this work on subscriber forms etc as well...or is there anything else that will stop spam through contact forms?

Go to Top