如何从客户端验证BotDetect MVC CAPTCHA [英] How to Validate BotDetect MVC CAPTCHA from client Side

查看:55
本文介绍了如何从客户端验证BotDetect MVC CAPTCHA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在我的asp.net MVC项目中使用BotDetect MVC Captch。以下方式我使用验证码



Hi,

I am using BotDetect MVC Captch with my asp.net MVC project. The following way I am using the captcha

<div class="form-group">
              @{ MvcCaptcha sampleCaptcha = new MvcCaptcha("SampleCaptcha"); }
              @Html.Captcha(sampleCaptcha)
          </div>
          <div class="form-group">
              @Html.TextBox("CaptchaCode", null, new { @class = "form-control input-lg", placeholder = "Please enter above code", data_bvalidator = "required", data_bvalidator_msg = "Please fill the above pattern" })
              @Html.ValidationMessage("CaptchaCode")
          </div>





我想在验证码textb中添加一些客户端验证牛。如果可以,请你帮助我。在此先感谢。



I would like to add some client side validation to the captcha textbox. Please help me if you can. Thanks in advance.

推荐答案

Captchas可以阻止僵尸程序,僵尸程序不执行javascript,因此使用javascript验证的验证码实际上是无用的;你也可以不使用它而不是惹恼你的用户。
Captchas are there to stop bots, bots don't execute javascript, so a captcha that uses javascript to validate is literally useless; you might as well not use one and not annoy your users.


这篇关于如何从客户端验证BotDetect MVC CAPTCHA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆