Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/
Upload File :
Current File : /home2/wtmwscom/public_html/robot_check_api.php

  <?php
  
    $secretKey = '6LdxJtkUAAAAAEtKnyfhCz7DlKDNnaH0blr3fUgP'; 
    
    $response = 1;
    
    // Verify the reCAPTCHA response 
    $verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secretKey.'&response='.$_POST['robot_value']); 
           
    // Decode json data 
    $responseData = json_decode($verifyResponse); 

    // If reCAPTCHA response is valid 
    if($responseData->success){ 
        $response = "1";
    }else{
        $response = "0";
    }
    
    echo $response;