Google new reCAPTCHA using asp.net mvc

Here in this article, I will show you how to implement Google new reCAPTCHA using asp.net MVC.

Google reCAPTCHA is a free service helps to protect our websites from spam and abuse that restricts the automated input sent by a system and allows only input from a real human.

Google new reCAPTCHA using asp.net mvc
@{
    ViewBag.Title = "Index";
}
<h2>Index</h2>
<div>
    @using (Html.BeginForm("FormSubmit", "Home", FormMethod.Post))
{
    <div class="g-recaptcha" data-sitekey="your sitekey here"></div>
    <input type="submit" value="Submit" />
}
</div>
<span style="display:inline-block; font-size:20px;margin:20px 0;padding:20px;border:1px solid #D3D3D3">
    @ViewBag.Message
</span>
<script src='https://www.google.com/recaptcha/api.js' type="text/javascript"></script>

Posted By :