BotDetect Java CAPTCHA Gradle Build Dependency

BotDetect Java Captcha as a Gradle dependency

BotDetect Java Captcha library's Maven artefact can be added to your project as a Gradle dependency:

1) Add BotDetect public Maven repository to build.gradle file:

repositories {
  maven {
    url "https://git.captcha.com/maven.git/blob_plain/HEAD:/"
  }
  ...    
}

2) Since BotDetect Java Captcha Maven artifact is not available on "mavenCentral", to use it as an external dependency, BotDetect Java Captcha repository must be defined:

dependencies {
  ...
  compile 'com.captcha:botdetect-jsf20:4.0.beta1'
  ...
}

The highlighted code defines dependency:

Group ID: com.captcha
Artifact ID: botdetect-jsf20
Version: 4.0.beta1

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

Configure BotDetect Captcha Servlet

Update your application configuration (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>

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.