从客户端验证验证码 [英] validate captcha from client side

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

问题描述

你好,



我在asp.net寄存器控制器上使用capcha,因此无法从后面的代码中检查catcha验证。



请建议我如何从客户端验证验钞码。



使用验证码网址:

Google ReCaptcha 2.0 - ASP.net控件 [ ^ ]



谢谢

shubham gupta

解决方案

在客户端验证毫无意义,因为您的脚本可以由恶意Malory更新或刚删除共。可能有一种方法可以挂钩注册控件的事件,以确保验证码有效,你最好还是考虑一下。


正如F-ES提到的那样,它不是在客户端实现它是一个好主意,但如果你真的需要在客户端进行,这里有一个很好的帖子



使用JavaScript验证客户端的Google RECaptcha和ASP.Net中的jQuery
[ ^ ]



及其演示在其中 [ ^ ]

Hello,

I am using capcha with asp.net register controler so not able to check catcha validation from code behind.

Please suggest me how we can validate captcha from client side.

Using captcha url:
Google ReCaptcha 2.0 - ASP.net Control[^]

Thanks
shubham gupta

解决方案

Validating on the client is pointless as your script can be updated by Malicious Malory or just removed altogether. There is probably a way of hooking into the events of the register control to ensure the captcha is valid, you're better off looking into that.


As F-ES have mentioned it is not a good idea to implemnt it on client side, but in case you really need to do it on client-side, here is a good post on it

Validate Google RECaptcha on Client Side using JavaScript and jQuery in ASP.Net
[^]

and the demo for it here[^]


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

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