//your website's form

 

 

 

//Make a second file for example https://mydomain/verify-recaptcha.php and paste 'YOUR RECAPTCHA SECRET KEY HERE', 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { header("Location: https://mydomain/capcha-try-again/"); } else if ($captcha_success->success==true) { //echo "

You are not not a bot!

"; } ?> //for 7.2 version paste here your vtiger autogenerated webform code up to tag //Your
tag should be this
Full example of https://mydomain/verify-recaptcha.php content 'YOUR RECAPTCHA SECRET', // <= There your google recaptcha secret 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { header("Location: https://your-domain/capcha-try-again-page/"); // <= change make a simple go back page } else if ($captcha_success->success==true) { } ?>