ASP CAPTCHA: LanapBotDetect Component

BotDetect ASP CAPTCHA is implemented as LanapBotDetect – a COM Component that creates and validates image and sound CAPTCHAs, which can easily be used from ASP scripts to implement ASP CAPTCHA functionality.

Public Instance Properties

Lanap.BotDetect public instance property CodeLength Length (number of characters) of the random code used for CAPTCHA generation. The default length is 5 characters.
Lanap.BotDetect public instance property CodeType The type of random code used for CAPTCHA generation. Valid values are numeric representations of the LanapBotDetect::CodeTypeEnum members. The default value is 0 (AlphaNumeric).
Lanap.BotDetect public instance property Format The image format in which CAPTCHA images will be rendered. Valid values are: 'Jpeg', 'Gif', 'Bmp', 'Png'. The default value is 'Jpeg'.
Lanap.BotDetect public instance property ImageWidth Width of the CAPTCHA image rendered (in pixels). The default value is 250.
Lanap.BotDetect public instance property ImageHeight Height of the CAPTCHA image rendered (in pixels). The default value is 50.
Lanap.BotDetect public instance property TextStyle The text style (distortion algorithm) used for CAPTCHA image generation. Valid values are numeric representations of the LanapBotDetect::TextStyleEnum members. The default value is 31 (ChalkBoard).
 

Public Instance Methods

Lanap.BotDetect public instance method CreateImage Returns a new CAPTCHA image showing a randomly generated code, using the currently set image format.
Lanap.BotDetect public instance method GetValue Returns the random code rendered in the current CAPTCHA image.
Lanap.BotDetect public instance method CreateSoundFromCode
  • BSTR code
Returns an audio CAPTCHA (in the WAV format) containing a spoken version of the given CAPTCHA code.
Lanap.BotDetect public instance method GetHashValue Returns the hashed value of the code rendered in the current CAPTCHA image.
Lanap.BotDetect public instance method Validate
  • BSTR userCode
  • BSTR hashValue
Compares the hash of the code sent by argument with the hashed code used to generate the CAPTCHA image.
language: English Español Tiếng Việt