-
1. Re: Anti spam field for form in CC14
Nancy O. Nov 23, 2014 2:09 PM (in response to BoppyW)This forum has problems. I sent you a private message b/c I could not reply directly to your post from Firefox. Look at Honeypot or Hidden Field to trap spambots.
Nancy O.
-
2. Re: Anti spam field for form in CC14
bregent Nov 23, 2014 2:15 PM (in response to BoppyW)Even simple techniques that require user's to read and enter codes can fail. Before resorting to those try honeypot.
http://devgrow.com/simple-php-honey-pot/
>It's great that DWCC has included the option to make form fields required.
Sure, but of course, that's not really relevant when discussing spambots since they ignore javascript.
-
3. Re: Anti spam field for form in CC14
BoppyW Nov 23, 2014 3:06 PM (in response to BoppyW)Thanks both, but I am struggling to get either suggested method to work. Either the form tells me all fields must be completed or else it just won't submit.
Is there no other way than PHP?
-
4. Re: Anti spam field for form in CC14
Nancy O. Nov 23, 2014 3:11 PM (in response to BoppyW)Do not make your honeypot a required field. That's not going to work.
-
5. Re: Anti spam field for form in CC14
BoppyW Nov 23, 2014 3:23 PM (in response to Nancy O.)I've got this form submitting but i can't see if there actually is the hidden honeypot field there. Can you see if I have done it correctly?
-
-
7. Re: Anti spam field for form in CC14
Nancy O. Nov 23, 2014 3:48 PM (in response to BoppyW)Now the bigger question is did you provide for the nospam field in your script? In other words, is it still submitting the form when you turn off CSS and put something into that field?
Nancy O.
-
8. Re: Anti spam field for form in CC14
BoppyW Nov 23, 2014 4:07 PM (in response to Nancy O.)Ah, no good. The form is still submitting when that field is occupied.
-
9. Re: Anti spam field for form in CC14
Nancy O. Nov 23, 2014 4:27 PM (in response to BoppyW)If the script sees that form field is empty, it should continue processing. If it sees any entries in that field, it should die. Did you provide for that in your PHP script?
Nancy O.
-
10. Re: Anti spam field for form in CC14
BoppyW Nov 23, 2014 4:39 PM (in response to Nancy O.)This is the PHP script from the page you suggested: http://primerestaurant.co.nz/new/honeypot.php
I have two form actions as there was nowhere in the PHP to tell it where to send the form:
<form action="http://www.primerestaurant.co.nz/cgi-sys/formmail.pl" method="post" title="Queenstown Restaurant Booking">
<form action=="honeypot.php">
-
11. Re: Anti spam field for form in CC14
Nancy O. Nov 23, 2014 4:45 PM (in response to BoppyW)Only one action allowed per form. And you're using Perl to process your form, why? Doesn't your server support PHP scripts? I have not used Perl scripts in more than 10 years. PHP is so much better for this.
Nancy O.
-
12. Re: Anti spam field for form in CC14
BoppyW Nov 23, 2014 4:53 PM (in response to Nancy O.)That's the Hostgator webform script I've been using for years. They do have a PHP script but it is totally bewildering to me.
-
13. Re: Anti spam field for form in CC14
bregent Nov 23, 2014 5:13 PM (in response to BoppyW)>That's the Hostgator webform script I've been using for years.
>They do have a PHP script but it is totally bewildering to me.
It's not clear if you still need help because you have marked this thread as solved. Anyway, you are either going to have to modify their perl or php form mail script if you want to include the honeypot code.




