How to add captcha to your website

Created at 13-May-2020, By samar

By using this code we can simply add captcha to our websites. You have to add your site key to data-sitekey property generated by google captcha. Google provide this technology to add your website to  block spammers and bots that try to automatically get email addresses or try to automatically sign up for or make use of Web sites, blogs or forums. The acronym of CAPTCHA is Completely Automated Public Turing test to tell Computers and Humans Apart.

<html>
  <head>
    <title>reCAPTCHA demo: Simple page</title>
     <script src="https://www.google.com/reCAPTCHA/api.js" async defer></script>
  </head>
  <body>
    <form action="?" method="POST">
      <div class="g-reCAPTCHA" data-sitekey="your_site_key"></div>
      <br/>
      <input type="submit" value="Submit">
    </form>
  </body>
</html>

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.