The BotDetect CAPTCHA Maven Artifact

Install the BotDetect Java Captcha Maven Artifact

The free version of BotDetect Java Captcha is available as a maven artifact:

1) Add BotDetect public maven repository (NetBeans 8):

Windows -> Services -> Maven Repositories -> Add Repository:
https://git.captcha.com/maven.git/blob_plain/HEAD:/

2) In pom.xml file, dependency should be added:

<dependency>
  <groupId>com.captcha</groupId>
  <artifactId>botdetect-jsf20</artifactId>
  <version>4.0.beta1</version>
</dependency>

[...]

<repository>
  <id>captcha</id>
  <name>BotDetect Captcha Repository</name>
  <url>https://git.captcha.com/maven.git/blob_plain/HEAD:/</url>
</repository>

In case your application uses JSF 1.2 you will need to add botdetect-jsf12 instead of botdetect-jsf20.

Configure BotDetect Captcha Servlet

Next, it is mandatory to configure BotDetect Captcha servlet by adding the following entry to your app's config (web.xml) file:

<servlet>
  <servlet-name>BotDetect Captcha</servlet-name>
  <servlet-class>com.captcha.botdetect.web.servlet.CaptchaServlet</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>BotDetect Captcha</servlet-name>
  <url-pattern>/botdetectcaptcha</url-pattern>
</servlet-mapping>

And then integration starts to differ depending of what kind of web application you develop.

Adding BotDetect Java Captcha to JSP forms

Here is where you can find how to add BotDetect CAPTCHA Protection to JSP Forms.

Adding BotDetect Java Captcha to file JSF forms

Here is where you can find how to add BotDetect CAPTCHA Protection to JavaServer Faces Applications.

Adding BotDetect Java Captcha to Spring MVC Forms

Here is where you can find how to integrate BotDetect Java Captcha into Spring MVC Applications.


Please Note

BotDetect Java Captcha Library v4.0.Beta1 is an in-progress port of BotDetect 4 Captcha, and we need you to guide our efforts towards a polished product. Please let us know if you encounter any bugs, implementation issues, or a usage scenario you would like to discuss.