简体   繁体   English

如何创建自己的验证码并使用c#在asp.net中进行验证?

[英]How do I create my own captcha and verify it in asp.net using c#?

How do I create my own captcha and test that response is generated by a person? 如何创建我自己的验证码并测试是否由人生成响应? is it possible to do it in asp.net? 有可能在asp.net中做到吗?

You can use reCAPTCHA with ASP.NET. 您可以将reCAPTCHA与ASP.NET一起使用。

Sign up for a free app key here , download the library and follow the quick start . 在此处注册免费的应用程序密钥,下载并按照快速入门进行操作

You could create your own images of numbers/words from paint by doodling and store the file location and corresponding string in the database. 您可以通过涂鸦来创建自己的数字图像,并将文件位置和相应的字符串存储在数据库中。 You could later randomly pick an entry, show the image and then verify it with the string value column. 您以后可以随机选择一个条目,显示图像,然后使用字符串值列进行验证。

Or you could use external service like http://www.google.com/recaptcha/captcha 或者您可以使用外部服务,例如http://www.google.com/recaptcha/captcha

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM