recaptcha
<script>
grecaptcha.ready(function() {
grecaptcha.execute('SITEKEY', {action: 'submit'}).then(function(token) {
document.getElementById("token").value = token;
});
});
</script>
3.88
8
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
Thank you!
8
0
4
4
//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
Thank you!
4
0
4.3
10
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.
Thank you!
10
0
4.44
10
<!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";
}
}
}
?>
Thank you!
10
0
Are there any code examples left?
New code examples in category Html