close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How can I integrate reCaptcha v3?

Thread began 12/25/2018 5:28 pm by Lee Firth | Last modified 12/28/2018 5:30 pm by Ray Borduin | 59 views | 8 replies |

Lee Firth

How can I integrate reCaptcha v3?

I would like to upgrade the captcha on one of my existing forms to reCaptcha v3, is this possible?

Sign in to reply to this post

Ray BorduinWebAssist

Yes. Just follow the reCaptcha v3 documentation to integrate it into your page.

Sign in to reply to this post

Lee Firth

Thanks Ray, what parts of the original reCapture would need removing for it to not interfere with reCapture version 3?

Sign in to reply to this post

Ray BorduinWebAssist

I'm really not sure. That would probably be covered in the reCaptcha v3 documentation. I'd probably have to use a premier support ticket to help since I'm not that familiar with what you have so far. My guess is that the code updates wouldn't be that drastic, but it would take some research.

Sign in to reply to this post

Lee Firth

I will have a go myself using my localhost version of the website, if I can't work it out I will submit a premier support ticket. Thanks Ray.

Sign in to reply to this post

Ray BorduinWebAssist

We got this working in a premier support ticket this morning.

Sign in to reply to this post

Lee Firth

Thank for your help today Ray. One other thing, the documentation states that you should verify the 'action'. I did this by editing the if statement like so:

php:
<?php

     $respObj 
json_decode($resp );
     if (
$respObj->success && $respObj->action == 'homepage') {
         if (
$respObj->score 0.5) {
             
header("location: " .$_SERVER["REQUEST_URI"]);
             die();
         }
     } else {
         
header("location: " .$_SERVER["REQUEST_URI"]);
         die();
     }
?>


Would this be ok?

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure... does it work?

Maybe add:
$respObj = json_decode($resp );
var_dump($respObj);
die();
if ($respObj->success && $respObj->action == 'homepage') {

I thought we changed the action to login? Adding the debug code should help you see what the action is so you can test it's value correctly.

Sign in to reply to this post

Lee Firth

Seems to work OK. I have changed the action name to 'contact/us/form' based on the examples: https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php as the action name looks like it can be anything as ling as they only contain alphanumeric characters and slashes, and must not be user-specific.

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...