[英]What can be the best way to use captcha with spring boot and react application?
I want to implement captcha for my application which has frontend on React JS and backend on Spring boot.我想为我的应用程序实现验证码,它在 React JS 上有前端,在 Spring boot 上有后端。 For implementing captcha, I found many solutions like google's recaptcha, botdetect library etc. But I am bit confused what should be the best way and flow to use captcha for my application.
为了实现验证码,我找到了许多解决方案,例如 google 的 recaptcha、botdetect 库等。但是我有点困惑什么应该是在我的应用程序中使用验证码的最佳方式和流程。 I want to pick a way which is optimised and fast in processing.
我想选择一种优化且处理速度快的方式。
Please answer your suggestions.请回答您的建议。 Thanks in advance!
提前致谢!
I used a package in node.js called svg-captcha (link: https://www.npmjs.com/package/svg-captcha ) ;我在 node.js 中使用了一个名为 svg-captcha 的包(链接: https : //www.npmjs.com/package/svg-captcha ); it is specifically built for avoiding google recaptcha (and the idea is simple so you might find similar packages for spring boot), basically the client calls for an image (svg) via an api to backend;
它是专门为避免 google recaptcha 而构建的(这个想法很简单,所以你可能会找到类似的 Spring Boot 包),基本上是客户端通过 api 向后端调用图像(svg); which returns the image and encoded text.
它返回图像和编码文本。 You can use the same idea for quick application.
您可以使用相同的想法进行快速应用。 Although, i would not use it for serious applications.
虽然,我不会将它用于严肃的应用程序。 Good luck!
祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.