BotDetect 2.0 ASP CAPTCHA Sample Projects
The BotDetect 2.0 ASP CAPTCHA installation includes 4 samples which can help you get started with integrating BotDetect in your applications.
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 Form Demo
This sample contains the minimum of code required to show a CAPTCHA on a ASP page and validate the user input, redirecting users 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 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.
BotDetect Refresh Demo
This sample demonstrates how to show a simple CAPTCHA which allows users to request a new image (if the current one is unreadable, for example). It uses JavaScript to load a new CAPTCHA image asynchronously (without reloading the whole page), improving the user experience as much as possible. This script is packaged in a separate .js file, which you can easily re-use in your pages.
BotDetect Form Random Demo
Expanding on the BotDetect Form Demo, this sample shows how you can easily randomize various Captcha control parameters. 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.