Site
Secret
<script src='https://www.google.com/recaptcha/api.js'></script>


$response = $_POST["g-recaptcha-response"];

$url = 'https://www.google.com/recaptcha/api/siteverify';
$data = array(
'secret' => '{{ 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) {
$robot="no";
} else if ($captcha_success->success==true) {
$robot="Yes";
}




!$robot || $robot== "no" ||


<div class="captcha_wrapper">
<div class="g-recaptcha" data-sitekey="{{ Site }}"></div>
</div>