BotDetect ASP CAPTCHA Sample Projects (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 code samples.

General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.

The BotDetect ASP CAPTCHA installation includes 4 samples which can help you get started with integrating BotDetect in your applications.

Table of Contents

BotDetect CAPTCHA ASP Samples Installation

By default, the samples are installed at
C:\Program Files\Lanapsoft\BotDetect\ASP\v2.0\Samples\.

You can also run them from the Start Menu:
Programs > Lanapsoft > BotDetect > ASP > v2.0 > Samples.

Before you can start using them, you should run the 1st Install the Samples.bat script from the same Start Menu folder, which will create and configure the IIS virtual folders.

This next section contains a short description of each sample.

BotDetect CAPTCHA Validation Code Sample

This sample contains the minimum of code required to show a CAPTCHA on a ASP page and validate the user input, allowing users access to a protected page only if they successfully solve the CAPTCHA. It can be used as a starting point when you are first learning how to use BotDetect.

BotDetect CAPTCHA Randomization Code Sample

Expanding on the CAPTCHA Validation Sample, this sample shows how you can easily randomize various Captcha parameters. To ensure randomization is used for all CAPTCHA requests, the randomization code is added in the modified LanapBotDetectHandler.asp file included with the sample.

Randomly using different CAPTCHA algorithms and other available parameter values can significantly improve the CAPTCHA security, as explained here and here. This is the best way to take full advantage of the 50 different algorithms shipped with BotDetect.

BotDetect CAPTCHA Ajax Validation Code Sample

This sample demonstrates how to use Ajax asynchronous requests to improve the CAPTCHA validation user experience. It uses the jQuery library for making asynchronous requests and parsing the JSON result returned by the ASP validation code.

The functionality of the sample is the same as the CAPTCHA Validation Sample, but when the user enters an incorrect CAPTCHA code, the error message is shown perceivably faster. For security reasons, passing the client-side CAPTCHA validation doesn't bypass the server-side validation.

BotDetect CAPTCHA Features Demo

Instead of demonstrating typical real-world CAPTCHA behavior, this sample allows you to easily experiment with all BotDetect parameters and their combinations. It can be used to determine the best CAPTCHA to use for your needs, as well as showing how to set all Captcha control properties dynamically in your ASP code. It is equivalent to the BotDetect Online Demo.

Since this sample project doesn't demonstrate how to use BotDetect CAPTCHA protection in your applications, but allows you to test different BotDetect features, its source code is not published online.


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 code samples.

General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.

language: English Español Tiếng Việt