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.

Archive

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

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

Spam protection on user generated forms


Go to End
Reply

9 Posts   3016 Views

Avatar
Fuzz10

22 January 2008 at 4:01am Community Member, 787 Posts

Did anyone happen to find / build a quick-fix to protect users from getting spammed through their self-made forms ? A customer is being killed by spam at the moment. Creating a custom-form is not an option in this case.

Thanks !

Avatar
Ingo

26 January 2008 at 6:31pm Forum Moderator, 801 Posts

hm, we had good experiences with spam-protection through simple challenge fields ("what is four plus three?") - which means you'd have to subclass UserDefinedForm and implement your own Validator/RequiredFields (on the serverside).
other than that, have a look at http://recaptcha.net (same subclassing, but more complicated).
you can also open a request to have this implemented natively on open.silverstripe.com

Avatar
Fuzz10

27 January 2008 at 12:35am Community Member, 787 Posts

Thanks.

I think I'll go the simple challenge route. Oh , I also added a ticket. ;-)

Avatar
Fuzz10

31 January 2008 at 12:55am Community Member, 787 Posts

Ingo,

I'm kinda stuck doing this. Do you happen to have an example of the class you mentioned laying around ? I can't figure out how to subclass the SS UserDefinedForm class to do my own stuff without breaking stuff. ;)

Thanks !

Avatar
Ingo

31 January 2008 at 9:08am Forum Moderator, 801 Posts

unfortunately not - there's some documentation at
http://doc.silverstripe.com/doku.php?id=validator and http://doc.silverstripe.com/doku.php?id=recipes:forms

userdefinedforms are traditinionally hard to customize, you might want to consider implemeting a normal form-subclass.

Avatar
Fuzz10

2 February 2008 at 3:47am Community Member, 787 Posts

Thanks..

I just can't figure out how to extend the userdefined form and get SS to work with it.

A custom form isn't really an option for my client..

Will keep trying. ;-)

Avatar
dio5

2 February 2008 at 4:49am Community Member, 501 Posts

Isn't the new module of any use somehow? (haven't looked into it yet, just saw it mentioned on the dev-list.

http://doc.silverstripe.com/doku.php?id=modules:recaptcha

Avatar
Fuzz10

2 February 2008 at 10:00am Community Member, 787 Posts

Hi Dio, Thanks...

Problem is I´m trying to integrate it on a User Defined Form... Can´t figure out how to do it.... Creating a custom form is not (yet) a solution ....

Go to Top