close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Google reCaptcha not stopping spam

Thread began 7/12/2021 12:00 pm by Mags | Last modified 7/12/2021 2:18 pm by Ray Borduin | 424 views | 4 replies |

Mags

Google reCaptcha not stopping spam

Hi Ray, you kindly helped me to properly integrate Google's reCaptcha v3 invisible challenge widget via a premier support ticket a few months back. I've been trying to do the same on another site and (I think) I copied over all the code as you had it, however the client received more than 3,000 spam emails over the weekend so I've obviously missed something!! Would you mind taking a look at this page to see what I've done wrong?

Sign in to reply to this post

Ray BorduinWebAssist

Your recaptcha code needs to be above the validation code and you have to validate the returned value from the recaptcha... and the trigger should be the same as the validation. You have the recaptcha code repeated twice (remove one) and you have it below the server validation and never validate the $recaptchaScore value returned.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mags

I knew I was missing something... I'd overlooked the validation code from the other site. Does the attached page look OK now?

Sign in to reply to this post

Ray BorduinWebAssist

Yes that looks better. You should update line 90 to:

<?php if((isset($_POST["submit"]) || isset($_POST["submit_x"])) && isset($_POST['event'])) { // send if Mortgage or Protection Event ?>

and delete the blank line at line 59

Sign in to reply to this post
Did this help? Tips are appreciated...

Mags

Thanks so much for your help!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...