The BotDetect CAPTCHA Maven Artifact
Unlike Recaptcha the Stalker -- BotDetect CAPTCHA works in China! Licensable source-code; self-hosted -- doesn't stalk -- nor does it slurp your form-data! Think: GDPR & LGPD!
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/botdetect-java-captcha.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.beta3.7</version> </dependency> [...] <repository> <id>captcha</id> <name>BotDetect Captcha Repository</name> <url>https://git.captcha.com/botdetect-java-captcha.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 CaptchaServlet
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.
Adding BotDetect Java Captcha to Struts forms
Here is where you can find how to integrate BotDetect Java Captcha into Struts Applications.
Please Note
BotDetect Java Captcha Library v4.0.Beta3.7 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.
Current BotDetect Versions
-
BotDetect ASP.NET CAPTCHA
2019-07-22v4.4.2 -
BotDetect Java CAPTCHA
2019-07-22v4.0.Beta3.7 -
BotDetect PHP CAPTCHA
2019-07-22v4.2.5