Honeypot captcha with form builder

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
rubberglover
Forum Members
Forum Members
Posts: 53
Joined: Mon Jul 23, 2007 5:30 pm

Honeypot captcha with form builder

Post by rubberglover »

Is it possible to create a simple honeypot captcha using form builder? If not it'd make nice a addition to the field type drop down menu!

I want to make a text field that is hidden by CSS, but is validated as an empty field. That way a valid human user will leave it blank (as they can't even see it) and it will validate.

I've tried making a text input field, choosing 'match regular expression' as the field validation, then entering

Code: Select all

^$
as the validation regex so that it looks for an empty string... problem is it only runs the validation if you check 'require a response from this field' and so it's checking to make sure the field is NOT empty, and then immediately checking to make sure it IS empty, which obviously doesn't work!

Any ideas?
boonier
Forum Members
Forum Members
Posts: 43
Joined: Mon Feb 19, 2007 11:39 pm

Re: Honeypot captcha with form builder

Post by boonier »

Hi, did this ever get solved? or did anyone successfully do this?

I'd like to implement this on my site as it's getting attacked with spam recently. Also, would I have to hack the module php to check the field before the form is posted? Maybe I've had too many xmas sherries but I can't see a way to do this within the smarty from the template.

cheers
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Honeypot captcha with form builder

Post by calguy1000 »

It's not hard to do with a simple UDT, and a custom form template.

a: give a text field a class/alias
b: modify the form template to ensure that the container that has that class is hidden.
c: create a simple UDT (this will take a bit of back and forth)
the UDT should look in it's $params array... it'll have (on form submission) a list
of all of the fields and their submitted values.
d: add the UDT as a disposition for your formbuilder form.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Honeypot captcha with form builder

Post by Rolf »

Velden added the feature to this blog post
https://www.cmscanbesimple.org/blog/for ... modal-view
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
boonier
Forum Members
Forum Members
Posts: 43
Joined: Mon Feb 19, 2007 11:39 pm

Re: Honeypot captcha with form builder

Post by boonier »

Thanks for the explanations guys. Will investigate!

S
Locked

Return to “Modules/Add-Ons”