📜  如何在 php 代码示例中添加 recaptcha 验证

📅  最后修改于: 2022-03-11 14:54:06.580000             🧑  作者: Mango

代码示例1
index.html


  
    Google recapcha demo - Codeforgeek
    
  
  
    

Google reCAPTHA Demo







verify.php Please check the the captcha form.'; exit; } $response = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=YOUR SECRET KEY&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); if($response['success'] == false) { echo '

You are spammer ! Get the @$%K out

'; } else { echo '

Thanks for posting comment.

'; } ?>