Hi all,
I'm trying to integrate a google recaptcha v2 on my website using ADDT.
I added recaptcha v2 using the data from the google site.
But the form will pass validation even if the user doesn't resolve the recaptcha.
The recaptcha appears on the page, but how can validate it?
I think I'm missing something here.
I linked the correct google js file as instructed and added the following code before my submit button:
<div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></div>
But it doesn't seem to work.
TIA
tony
how to add a google recaptcha v2 to a form?
Re: how to add a google recaptcha v2 to a form?
Hi Tony,
You need to verify the response.
Add the response to a POST['variable'] then you can use the normal interakt/addt validation to check if the response is there.
I have found it is not that effective and still had bots registering.
Done some serious custom work that I don't really want to discuss in an open forum and the problem has been stopped.
Here is an overview of what I have in place. One aspect is not discussed in that article tho.
https://www.xms-systems.co.uk/article-2 ... bsite.html
You need to verify the response.
Add the response to a POST['variable'] then you can use the normal interakt/addt validation to check if the response is there.
I have found it is not that effective and still had bots registering.
Done some serious custom work that I don't really want to discuss in an open forum and the problem has been stopped.
Here is an overview of what I have in place. One aspect is not discussed in that article tho.
https://www.xms-systems.co.uk/article-2 ... bsite.html