Must Read : Google reCaptcha Using PHP
Recently Google has been introduced new reCaptcha API called Are you a robot?
This is a complete new design of captcha system. They name it “NO CAPTCHA reCAPTCHA” It protect your website for spammers and robots.
In this post i will explain you how to implement this using simple example and code.
First you need to register your website with google recaptcha here
Login using your gmail account and fill this form
Once you fill this form and click on register , google will give you 2 keys
Called Site Key and Secret Key
Once you have that Add this script to HTML
Once you done with it Put this Below Line where you want to display reCaptcha and replace Google Site Key with Your Original Site Key
Once you done with it you can check the Captcha is click by human or not by this below line of code.
Make sure you change the YOUR SECRET KEY with your original Secret Key in the blow Code
echo '<h2>Please check the the captcha form.</h2>';
$response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=YOUR SECRET KEY&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
echo '<h2>You are spammer </h2>';
echo '<h2>Thanks for posting comment.</h2>';
You Are Done 🙂
Download the Files from Here : DOWNLOAD