Posts

Showing posts from January, 2017

Setup of Google reCAPTCHA

Image
What is CAPTCHA? The term CAPTCHA (for Completely Automated Public Turing Test To Tell Computers and Humans Apart) was coined in 2000 by Luis von Ahn, Manuel Blum, Nicholas Hopper and John Langford of Carnegie Mellon University. A CAPTCHA is protects websites against bots by generating and grading tests that humans can pass but current computer programs cannot. Google create program and name it reCAPTCHA . Follow this steps for setup reCAPTCHA For setup first create keys for auth. reCAPTCHA Genrate keys Click here Now in page where use captcha  add script before </head> tag close. <script src='https://www.google.com/recaptcha/api.js'></script> Add this div tag when display capcha <div class="g-recaptcha" data-sitekey="**yoursitekey**"></div> add this code when you action for captcha. (php scipt) if( !empty($_POST['g-recaptcha-response'])){             $secret = '**Yoursecr