Awesome
visualCaptcha-java
Plain Java Servlet backend for visualCaptcha
Configuration
-
Add dependency on visualCaptcha-java to your project.
-
Copy the directories assets/audios and assets/images into your web root.
-
Register and configure the servlet in your web.xml:
<servlet> <servlet-name>Captcha</servlet-name> <servlet-class>net.dotzour.visualCaptcha.CaptchaServlet</servlet-class> <init-param> <param-name>image-asset-path</param-name> <param-value>images/visualCaptcha</param-value> </init-param> <init-param> <param-name>audio-asset-path</param-name> <param-value>audio</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>Captcha</servlet-name> <url-pattern>/captcha/*</url-pattern> </servlet-mapping> -
Configure your front-end to communicate with the servlet path you choose.