gpt4 book ai didi

jquery - 使用 Angular js 实现 BotDetect

转载 作者:行者123 更新时间:2023-12-03 22:42:24 27 4
gpt4 key购买 nike

我们拥有BotDetect的许可证。我想用 Angular js 实现这个 BotDetect。我在谷歌中搜索,我发现没有任何适当的帮助,但是,我得到了 angularjs-captcha这看起来很有希望,但对我没有帮助。

这正是我所需要的。

  1. 使用验证码图像加载页面
  2. 用户填写表格
  3. 用户点击提交
  4. 使用$http请求页面提交
  5. 如果响应成功或失败,则应根据其工作引擎重新加载验证码。

这是我的表格

<form ng-submit="Submit($event)">
<table width="100%" cellpadding="0" cellspacing="1" align="center">
<tr>
<td class="datafield">
<label>Name:</label>
<span class="red">*</span>
</td>
<td class="datafield">
<input type="text" maxlength="50" class="searchboxmain" placeholder="enter name..."
ng-model="Form.Name" />
</td>
</tr>
<tr>
<td class="datafield">
<label>Email:</label>
<span class="red">*</span>
</td>
<td class="datafield">
<input type="email" maxlength="240" class="searchboxmain" placeholder="enter email..."
ng-model="Form.Email" />
</td>
</tr>
<tr>
<td class="datafield">Enter Captcha
</td>
<td class="datafield">
<botdetect-captcha>
<br />
<input type="text" id="CaptchaCodeTextBox" ng-model="Form.Captcha"/>
</td>
</tr>
<tr>
<td class="datafield"></td>
<td class="datafield">
<button class="submitbutton" ng-click="Submit($event)">Submit enquiry</button>
</td>
</tr>
</table>
</form>

Controller

app.controller('ContactCtrl', function($scope, $http) {
$scope.Form = {
Name: '',
Email: '',
Captcha: ''
};
$scope.Submit = function(event) {
// Here all code
event.preventDefault();
};
});

我很确定可能有其他解决方案而不是使用这个 Angular Captcha,但我不认识任何人,所以可以接受替代解决方案。

最佳答案

根据Bot Detect :

Please Note: Currently, AngularJS module is only supported by BotDetect Java, but support in PHP and ASP.NET versions is coming soon.

但是,您应该能够通过以下指南完成您在问题中描述的内容:Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications

关于jquery - 使用 Angular js 实现 BotDetect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44003122/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com