Skip to content

dhana29/Implement-Google-reCAPTACHA-in-MVC-Solution-using-reCAPTCHA.MVC.dll-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Implement-Google-reCAPTACHA-in-MVC-Solution-using-reCAPTCHA.MVC.dll-

Implement Google reCAPTACHA in MVC Solution using reCAPTCHA.MVC.dll

Steps:

  • Generate key from the below path https://www.google.com/recaptcha/admin
  • Create ASP .Net MVC Template solution
  • Add reCAPTCHA.MVC.dll nuget package
  • Add View, Controller and Model code from the attachment
  • Add below script into your html head tag <script src="https://www.google.com/recaptcha/api.js"></script> Important to add below lines in the web.config file
<appSettings>
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="reCaptchaPublicKey" value="CopyPublicKeyFromGoogleCAPTACHA" />
    <add key="reCaptchaPrivateKey" value="CopyPrivateKeyFromGoogleCAPTACHA" />
</appSettings>

<handlers>
  <add name="MSCaptcha" verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
</handlers>

HAPPY CODING!

About

Implement Google reCAPTACHA in MVC Solution using reCAPTCHA.MVC.dll

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages