tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 
ASCII ART CAPTCHA
    ASCII Art CAPTCHA is a light weight ASCII CAPTCHA generation framework for web sites. It provides useful custom tags which can be integrated with ease. It also supports custom ASCII fonts. It allows the user define fonts with replaceable characters. It provides two CAPATCHA generation strategies. The first one is dictionary based and the other is random word generation. Just import the tag library and include the custom tag shown below,

<%@ taglib uri="http://www.bethecoder.com/tags/captcha/asciiart prefix="btcac" %>
<btcac:asciiCaptcha id="one" fontName="melborn" type="dictionary" />


creative

<%@ taglib uri="http://www.bethecoder.com/tags/captcha/asciiart prefix="btcac" %>
<btcac:asciiCaptcha id="two" fontName="italic" type="dictionary" />


computer

<%@ taglib uri="http://www.bethecoder.com/tags/captcha/asciiart prefix="btcac" %>
<btcac:asciiCaptcha id="three" fontName="rect" />


random

<%@ taglib uri="http://www.bethecoder.com/tags/captcha/asciiart prefix="btcac" %>
<btcac:asciiCaptcha id="four" fontName="romb" type="dictionary" />


random

<%@ taglib uri="http://www.bethecoder.com/tags/captcha/asciiart prefix="btcac" %>
<btcac:asciiCaptcha id="five" fontName="5by5" length="6" repChar="$" />


random
The CAPTCHA generated can be accessed using the following code,
WebUtil
   - public static String getCaptcha(HttpServletRequest request, String captchaId)
The order of search for ASCII FONT configuration and dictionary properties is shown below,
/YOUR_WEB_ROOT/WEB-INF/classes/ascii_captcha_cfg.xml
/YOUR_WEB_ROOT/WEB-INF/classes/ascii_dictionary.txt
/YOUR_WEB_ROOT/WEB-INF/classes/fonts/melborn.font

/YOUR_WEB_ROOT/WEB-INF/lib/btc_ascii_captcha.jar!/ascii_captcha_cfg.xml
/YOUR_WEB_ROOT/WEB-INF/lib/btc_ascii_captcha.jar!/ascii_dictionary.txt
/YOUR_WEB_ROOT/WEB-INF/lib/btc_ascii_captcha.jar!/fonts/melborn.font

/YOUR_WEB_ROOT/WEB-INF/lib/
btc_ascii_captcha.jar!/com/bethecoder/captcha/ascii/utils/ascii_captcha_cfg.xml
/YOUR_WEB_ROOT/WEB-INF/lib/
btc_ascii_captcha.jar!/com/bethecoder/captcha/ascii/utils/ascii_dictionary.txt
/YOUR_WEB_ROOT/WEB-INF/lib/
btc_ascii_captcha.jar!/com/bethecoder/captcha/ascii/utils/fonts/melborn.font

ASCII CAPTCHA Version 1.0 Download (30 KB)

ASCII CAPTCHA Version 1.0 Demo Download (26 KB)
 
 
 
bl  br