javascript - Latest recpatcha for node.js -


how use latest captcha google node.js ?!

i know how use this(explained here), don't know how use latest captcha on server side of node.js.

only on client side:

  1. adding this(client-side):

    <script src='https://www.google.com/recaptcha/api.js'></script> <div class="g-recaptcha" data-sitekey="public_key"></div> 
  2. adding on server side, write:

if users send form integrated recaptcha, receive among other things, string containing name "g-recaptcha-response". if want find out if google has verified user in question, send post request following parameters: url: https://www.google.com/recaptcha/api/siteverify secret (needed) ... response (required) value of 'g-recaptcha-response' remoteip ip address of end user on recaptcha documentation website find more information , advanced configurations.

the problem here is, don't know how securely node.js , way not find "g-recaptcha-response" in response.

can give me informations on ?

i using express.js , handlebars.js.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -