using reCaptcha in cake php

  1. Go to register your website and get key.
  2. Client-side integration
    Paste this snippet before the closing </head> tag on your HTML template:

    Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear:
  3. Server side integration
    When your users submit the form where you integrated reCAPTCHA, you’ll get as part of the payload a string with the name “g-recaptcha-response”. In order to check whether Google has verified that user, send a POST request with these parameters:

    secret (required) your secret key
    response (required) The value of ‘g-recaptcha-response’.
    remoteip The end user’s ip address.
  4. Controller