This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<form action="https://link.to.your.form/" id="wehatecaptchas"> | |
<!— more inputs here —> | |
<button type="submit" difficulty="5">Submit</button> | |
</form> | |
<script> | |
const onSubmit = (data) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$captchaVerification = !empty($_REQUEST["captcha_verification"]) ? $_REQUEST["captcha_verification"] : false; | |
if ($captchaVerification !== false) { | |
$data = [ | |
"endpoint" => "verify", | |
"captcha_verification" => $captchaVerification, | |
"captcha_difficulty" => 5 // make sure the difficulty matches the diffulty you added to form button | |
]; | |
$options = [ | |
"http" => [ |