CAPTCHA---验证码 ---Security code

本文介绍如何使用 Maven 依赖集成 BotDetect Java CAPTCHA 库,包括添加依赖、注册 Servlet 的步骤,并提供免费版本下载链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

BotDetect Java CAPTCHA Generator

 

3. Add BotDetect Java CAPTCHA Library Dependency

Here is how to add BotDetect Java CAPTCHA Library dependency in various dependency management scenarios:

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.beta3</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.

4. Register 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>

BotDetect Java CAPTCHA Free version

You can download BotDetect Java CAPTCHA library for free and use it immediately! Your forms can be protected from spam (and bots in general) in minutes.

Keep in mind that we offer basic email support for free to all BotDetect users. So if you need any assistance integrating BotDetect or have any questions or feedback, our Support department is at your disposal.

Once the BotDetect Captcha generator library has been integrated into your Java web application and you're satisfied with how it works, it's easy to upgrade your license if you need the extra features and options offered by commercial BotDetect versions.

BotDetect Java Captcha Free Download

https://captcha.com/java-captcha.html#jsf-maven-dependency

 

转载于:https://www.cnblogs.com/softidea/p/7052408.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值