Form spam with captcha

Hi,

On a form, I am using recaptcha + email form plugin with a PHP condition on the date_time field (assuming that spammers robots will try to fill in all the fields) :
PHP:
return "{fk_comments___date_time_raw}" !== '';

With these protections, the form isn't recorded but the notification email is still sent... I still get 20+ spams per day.
Do you have an idea of a solution ?
Thanks for any help !
 
Last edited:
You may find that the date_time isnt empty if they don't fill it in.

I'm not 100% what it would be, kind of depends on the settings. I'd suggest doing something like ...

var_dump($formModel->formData);exit;

... as the first line in your condition, then submit the form with that not filled in, see what date_time_raw actually is. You may find it's 0000-00-00 00:00:00, or set to current date, or something.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top