This is a tutorial repository on how to use the freecaptcha package in your node project.
- npm install freecaptcha
- in your html file where you need the captcha, create a canvas element as shown in the index.html here.
- in your index.js file, call the freecaptcha code through the createCaptcha function as shown in our index.js here. It requires the HTMLCanvasElement obtained in Step 2 as its sole argument.
- fetch the return value of the captcha (since createCaptcha has return type string). Compare it with the user input to validate the user!
Thanks for giving FreeCaptcha a chance!!
The Captcha is always a 9 letter code formed by entering the White, Navy Blue and Red Text (in order). Ignore the text of every other color.
For example, in this case, the correct value of the Captcha is joKYnpAbw