Iscriviti alla nostra newsletter per essere aggiornato periodicamente su tutte le novità e le attività che l'associazione sta portando avanti.
$response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=__PRIVATE_KEY__&response='.$_POST['g-recaptcha-response'].'&remoteip='.$_SERVER['REMOTE_ADDR']);
$responseDecoded = json_decode($response);
if ( $responseDecoded->success == false ) {
echo 'Busted!';
exit();
}
//Se siamo arrivati qua vuol dire che il controllo è superato, possiamo andare vanti tranquilli