Posts

Showing posts with the label Recaptcha

Using the new noCAPTCHA reCAPTCHA with Node.js and Express

Image
Using the new noCAPTCHA reCAPTCHA with Node.js and Express   Google recently released a  new version of reCAPTCHA  that eliminates typing for many users. Here's a quick how-to for integrating it in your Node.js application. We're going to use Express for simplicity, but these steps are mostly agnostic and could be wrapped into any application. Step 1: Register your site Head over to the  reCAPTCHA site  and add your website to the list. You'll be presented with a screen like this: Copy down the secret and site keys, you'll need them soon. Step 2: Integrate it   Build out a basic Node.js application. The key point is that your HTML view will contain the div listed on the reCAPTCHA settings page, along with the reCAPTCHA client-side JavaScript. On the server, a function similar to the following is needed to verify the submitted claim with the reCAPTCHA server: function verifyRecaptcha(key, callback) { https.get("https://www.