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.

All other Modules /

Discuss all other Modules here.

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

Honeypot in UserForms


Reply


3 Posts   815 Views

Avatar
firstpixel

Community Member, 16 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, 5513 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, 232 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