Introduction:
Here I will explain how to integrate Google new recaptcha in website to protect from spam attacks to your website. Google has introduced new recaptcha to validate protect site from spam and abuse. It uses advanced risk analysis engine to tell humans and bots apart.
Description:
In previous articles I explained create shortest url using Google URL Shortner, Show user current location on Google map using GeoLocation Api, Show Google map with latitude and longitude in asp.net, Google currency converter api example in asp.net and many articles relating to Google API, Google MAPS, Google Charts, jQuery and asp.net. Now I will explain how to add Google new recaptcha in website to protect from spam and abuse.
In previous articles I explained create shortest url using Google URL Shortner, Show user current location on Google map using GeoLocation Api, Show Google map with latitude and longitude in asp.net, Google currency converter api example in asp.net and many articles relating to Google API, Google MAPS, Google Charts, jQuery and asp.net. Now I will explain how to add Google new recaptcha in website to protect from spam and abuse.
Before we start adding recatcha first we need to
register our website in Google and you need to get secret key and site key for
that check this link Google ReCaptcha
Login with your Google account and register your
website in Google Recaptcha site and get site key & secret key like as
shown below
Once
you get Site key and Secrete key we need to add script file in header section like
as shown below
<script src='https://www.google.com/recaptcha/api.js'></script>
|
Now add following div tag in your html code wherever
you want to show captcha
|
If you want to check complete code we need to write
code like as shown below
|
To
check live demo try to click on below captcha to validate it
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
4 comments :
nice one...bt how to connect it with .net code behind(c#)
Hi great example... Could you pls help with validation and connect it with .net code behind(c#)
Well, this is what I call a completly incomplete example, don't waste people's time !!!
Note: Only a member of this blog may post a comment.