Answers for "recaptcha"

PHP
2

recaptcha

//using curl recaptcha v3 (sajo sunny) 
//add elements using html
(don't add elements to dom using script)


https://code.tutsplus.com/tutorials/example-of-how-to-add-google-recaptcha-v3-to-a-php-form--cms-33752
Posted by: Guest on July-27-2021
0

recaptcha

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <script src="https://www.google.com/recaptcha/api.js?render=SITEKEY"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form method="post" action="">
      <input type="hidden" name="token" id="token">
        <button type="submit" name="submit">Send</button>
    </form>
        <script>
        grecaptcha.ready(function() {
          grecaptcha.execute('SITEKEY', {action: 'submit'}).then(function(token) {
              document.getElementById("token").value = token;
          });
        });
  </script>
</body>
</html>
<?php 

  if(isset($_POST['submit'])){
    $request = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=SECRETKEY&response=" . $_POST['token']);
    $request = json_decode($request);
    if($request->success == true){
      if($request->score >= 0.6){
        // Do something
      }else{
        echo "error";
      }
    }
  }
?>
Posted by: Guest on April-07-2021
2

recaptcha

<script>
        grecaptcha.ready(function() {
          grecaptcha.execute('SITEKEY', {action: 'submit'}).then(function(token) {
              document.getElementById("token").value = token;
          });
        });
  </script>
Posted by: Guest on April-07-2021
3

recaptcha

What is reCAPTCHA? reCAPTCHA protects your website from fraud and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep malicious software from engaging in abusive activities on your website.
Posted by: Guest on February-16-2021
0

greggilbert/recaptcha

This package is abandoned. The sad fact is that I don't have time to maintain 
this package, so the release of Laravel 6 is as good as any to make a clean 
break. 

Alternative : https://github.com/biscolab/laravel-recaptcha
Posted by: Guest on November-19-2020

Browse Popular Code Answers by Language