Posted - 12/31/2018 : 06:04:34
I have a contact page and want to put a capcha on it. I cannot work out how to do it from the instruction manual. I registered with google, gone to control panel, put in the site key and secret key. I have ticked 'ask a question' in case this is the same as contact, but nothing happens when I fill out the contact form.
I have secondly, pasted googles code in the head section (client side intergration) - <script src='https://www.google.com/recaptcha/api.js'></script> and pasted the following in the contact form - <div class="g-recaptcha" data-sitekey="6Ldn24UUAAAAAK7yXjIFX-nhMBvFfxlmhce-7MWs"></div>. But nothing appears in the form when I upload (I expected a 'captcha box' to appear).
There is a server side intergration step which I don't understand and is as follows -
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: URL: https://www.google.com/recaptcha/api/siteverify secret (required) 6Ldn24UUAAAAAN9PYY-vsqjdpgNcRsYPX47P7yEj response (required) The value of 'g-recaptcha-response'. remoteip The end user's ip address. The reCAPTCHA documentation site describes more details and advanced configurations.
Can someone advise? I assume everything is automated on the control panel, i.e. you enter the information and tick the boxes and that is all you do. Maybe my control panel falls outside this?
Thanks
Mandy
Amanda Burke
|