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
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
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";
}
}
}
?>
recaptcha
<script>
grecaptcha.ready(function() {
grecaptcha.execute('SITEKEY', {action: 'submit'}).then(function(token) {
document.getElementById("token").value = token;
});
});
</script>
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.
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us