Reputation: 121
I am using reactjs & mvc web api 2 to build my website. and I want to add captcha in my UI form.
Is there any other way to add captcha in reactJS / Web Api 2 beside using google recaptcha.
It seems everybody are using recaptcha v2. but in my case, I prefer use text based captcha, like recaptcha v1.
Thanks
Upvotes: 3
Views: 2300
Reputation: 159
You don't have to rely on the Google's solution to this problem. If you're using React you can simply create your own component named Captcha which will decide if the form can be passed. How to do that?
React Component
Captcha and place it wherever you want
in your app. You can generate 2 random Integers and ask the user to
add them.As simple as that! Your imagination is the limit. Inside of that React Component you can define whatever method of verification you'd like to. Can be simple math task, can be distinguishing the shapes, colors, whatever you want...
Upvotes: 1