From 4e103ad9c58ff7d1bfd9fc105e027b54373dd96b Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Mon, 30 Oct 2017 16:09:46 +0100 Subject: [PATCH] Added invisible reCAPTCHA --- inc/sendEmail.php | 2 +- index.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/sendEmail.php b/inc/sendEmail.php index 7710f9c..c54ea01 100755 --- a/inc/sendEmail.php +++ b/inc/sendEmail.php @@ -29,7 +29,7 @@ if($_POST) { if (!$captcha){ $error['captcha'] = "Please check the CAPTCHA field."; } else { - $captchaResponse = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Le1wRcTAAAAADbdnvPLKQ_hupTI4jzaGGXFQhQA&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); + $captchaResponse = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Le7VisUAAAAAKExpdr5NJy8AHGM0Y3iPI1eVZgD&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); if($captchaResponse['success'] == false) { $error['captcha'] = "You are a robot."; } diff --git a/index.html b/index.html index 0178ebc..98875ac 100755 --- a/index.html +++ b/index.html @@ -391,7 +391,11 @@ -

+