From 8d6cb83506bcaa6b48aa1b24c31678a83b69374b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 29 Apr 2025 14:25:32 +0500 Subject: feat: captcha --- public/captcha.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 public/captcha.php (limited to 'public') diff --git a/public/captcha.php b/public/captcha.php new file mode 100644 index 0000000..d6e53e8 --- /dev/null +++ b/public/captcha.php @@ -0,0 +1,63 @@ + HCAPTCHA_SECRETKEY, "response" => $_POST["h-captcha-response"])) + ); + curl_setopt($request, CURLOPT_RETURNTRANSFER, true); + + $response = curl_exec($request); + curl_close($request); + + $json = json_decode($response); + + if ($json->success) { + $_SESSION["captcha_solved"] = true; + header("Location: /"); + exit; + } +} +?> + + + + + Resolving a hCaptcha for alright.party + + + + + + +
+
+
+
+
+
+
+
+
+ + + \ No newline at end of file -- cgit v1.2.3