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.

All other Modules /

Discuss all other Modules here.

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

Honeypot in UserForms


Go to End


3 Posts   2049 Views

Avatar
firstpixel

Community Member, 19 Posts

20 December 2011 at 8:18pm

Hi all,

As I get more and more spam on my contact form, I would like to inlude a field which I will hide via css that serves as a honeypot. Now my question: how can I change the UserForm so that the form data is only processed if the honeypot field is empty?
Thanks a lot.

Avatar
Willr

Forum Moderator, 5523 Posts

9 January 2012 at 7:28pm

how can I change the UserForm so that the form data is only processed if the honeypot field is empty?

The UserForms module has support for the Spam Protector module out of the box so that will be the easiest method and allow your honeypot solution to be used easily on other forms, comments etc.

Perhaps try https://github.com/hamishcampbell/silverstripe-simple-spam-protection

Avatar
Jedateach

Forum Moderator, 238 Posts

5 April 2012 at 2:01pm

I have uploaded my own honey pot spam protection field here:
https://github.com/burnbright/silverstripe-spamprotection-honeypot