简体   繁体   English

将验证码与 Spring Boot 和 React 应用程序一起使用的最佳方法是什么?

[英]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.

相关问题 在React Application中启用CORS的最佳方法是什么? - What is the best way to enable CORS in React Application? React - 使用多个 createContexts 的最佳方式是什么? - React - What is the Best Way to use Multiple createContexts? 使用 React Redux 商店的最佳方式是什么? - What is the best way to use the React Redux Store? 存储 JSON 文件以在 React 应用程序中使用的最佳方式是什么? - What would be the best way to store JSON files for use within a React application? 在 reactJS 中实现列表水平滚动的最佳方法是什么? 我也可以在反应代码中使用 getElementById 吗? - What is the best way to implement horizontal scroll on list in reactJS? And also can i use getElementById in react code? 如何在Spring Boot中使用create-react-app? - How can I use create-react-app with Spring Boot? 使用服务器端渲染和react的最佳方法是什么? - what is the best way to use server side rendering with react? 将 react-redux 与项目列表一起使用的最佳方法是什么? - What's the best way to use react-redux with list of items? 在对输入变量做出反应时使用状态的最佳方法是什么? - What is the best way to use states in react for input variables? 在 Github 页面上,您可以将 React 应用程序作为单个文件运行,并将其称为 function。在 Google Cloud Platform 上执行此操作的最佳方法是什么? - On Github Pages you can run a React application as a single file and call it as a function. What's the best way to do that on Google Cloud Platform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM