ASP CAPTCHA: LanapBotDetect Component (BotDetect v2.0)
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v2.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v3) is BotDetect v3 ASP Classic Captcha API reference.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.
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 |
||
|---|---|---|
![]() |
CodeLength | Length (number of characters) of the random code used for CAPTCHA generation. The default length is 5 characters. |
![]() |
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). |
![]() |
Format | The image format in which CAPTCHA images will be rendered. Valid values are: 'Jpeg', 'Gif', 'Bmp', 'Png'. The default value is 'Jpeg'. |
![]() |
ImageWidth | Width of the CAPTCHA image rendered (in pixels). The default value is 250. |
![]() |
ImageHeight | Height of the CAPTCHA image rendered (in pixels). The default value is 50. |
![]() |
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 |
||
![]() |
CreateImage | Returns a new CAPTCHA image showing a randomly generated code, using the currently set image format. |
![]() |
GetValue | Returns the random code rendered in the current CAPTCHA image. |
![]() |
CreateSoundFromCode
|
Returns an audio CAPTCHA (in the WAV format) containing a spoken version of the given CAPTCHA code. |
![]() |
GetHashValue | Returns the hashed value of the code rendered in the current CAPTCHA image. |
![]() |
Validate
|
Compares the hash of the code sent by argument with the hashed code used to generate the CAPTCHA image. |
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v2.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v3) is BotDetect v3 ASP Classic Captcha API reference.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.
Current BotDetect Versions
- BotDetect ASP.NET CAPTCHA v3.0.92011–11–21
- BotDetect ASP Classic CAPTCHA v3.0.92011–11–21








