Skip to content

ReCaptchaNet Class provides simple Google Recaptcha implementation.

License

Notifications You must be signed in to change notification settings

wwwebconcepts/RecaptchaNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VB.NET RecaptchaNet Class provides simple Google Recaptcha implementation using either the robots or classic Recaptcha interface.

See Contact.vbhtml for usage example.

GetControl() function call creates the robots style Google recaptcha control.

GetControl(theme, language) function call creates the classic style Google recaptcha control.

RecaptchaNet can be used to secure a form or as gateway page to other content.

' sample calling code
Dim theCAPTCHA As New ReCAPTCHANet
With theCAPTCHA
  .PrivateKey = "" & ReCAPTCHAPrivateKey & ""
  .PublicKey = "" & ReCAPTCHAPublicKey & ""
  .QueryParameter = "querystring parameter when using redirect. default is Recaptcha="
  .RedirectURL = "redirect to on success"
  .FailURL = "redirect to on fail"
  Construct() ' Returns validation as boolean
End With


' Classic style recaptcha: 
<div class="recaptcha"><%=theCAPTCHA.getControl("" & ReCAPTCHATheme & "","" & ReCAPTCHALanguage & "")%></div>

' Robots style: 
<div class="recaptcha"><%=theCAPTCHA.getControl()%></div>

About

ReCaptchaNet Class provides simple Google Recaptcha implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published