Any reason we'd want to use this code you've posted before instead of the one linked above?
They're the exact same demo page!
Hi Sanford Whiteman thanks for the sharing! Can you clarify for me where I should put the js in your link? Do we add to the header of each page that has a form? I've got a very basic understanding of js and css.
You're going to need more than JS and CSS because you need to also call a webhook to verify the ReCAPTCHA. ReCAPTCHA, like all Captchas, is not a browser-only technology (a lot of people don't understand this) because you a bot can easily avoid filling out the Captcha at all.
What isn't easy to forge, on the other hand -- and this is why Captchas exist -- is filling out the Captcha correctly, which in the newer-fangled Captchas means "correct answer + like a human would do it." So you always need the back end call to verify upon submission, otherwise you're not getting any protection.
It's likely that you'll need someone who gets the whole "life cycle" to set this up for you, since it's a simple process but you kinda need to get it end-to-end.
Any reason we'd want to use this code you've posted before instead of the one linked above?
They're the exact same demo page!
Like I said, I'm not very advanced in js and css. Thanks for the clarification.
Hi Sanford Whiteman thanks for the sharing! Can you clarify for me where I should put the js in your link? Do we add to the header of each page that has a form? I've got a very basic understanding of js and css.
You're going to need more than JS and CSS because you need to also call a webhook to verify the ReCAPTCHA. ReCAPTCHA, like all Captchas, is not a browser-only technology (a lot of people don't understand this) because you a bot can easily avoid filling out the Captcha at all.
What isn't easy to forge, on the other hand -- and this is why Captchas exist -- is filling out the Captcha correctly, which in the newer-fangled Captchas means "correct answer + like a human would do it." So you always need the back end call to verify upon submission, otherwise you're not getting any protection.
It's likely that you'll need someone who gets the whole "life cycle" to set this up for you, since it's a simple process but you kinda need to get it end-to-end.
I get the necessity of a verification process from your explanation. If we set up our own Google ReCaptcha, is the code you provided going to work without a webhook? Again, just trying to get a full understanding of this before tasking my webmaster to help us.
I get the necessity of a verification process from your explanation. If we set up our own Google ReCaptcha, is the code you provided going to work without a webhook? Again, just trying to get a full understanding of this before tasking my webmaster to help us.
What I was saying is there's no such thing as a Captcha that works without a webhook.
You must always make a back-end call, with your Google secret key, to see if the unique Captcha attempt (it's always unique every time you view the form) was a success. Otherwise someone can just barge past the Captcha and claim they answered correctly.
Written a blog on the captcha "life cycle", Please try it out
https://medium.com/@anulals/google-recaptcha-in-marketo-forms-b992fc30d000
Anulal, thanks a lot for featuring and attributing my code!
Some flaws in your walkthrough, though...
- Coded in UI with a restriction that, a lead fails reCAPTCHA validation wont be able to submit the form.
You can't stop forms from being submitted without a valid reCAPTCHA code.
You can only stop the server from accepting the form data for insert/update if the form was submitted without a valid ReCAPTCHA code.
Do you actually think I can't send form data to Marketo without clicking the ReCAPTCHA widget?
Care to share your URL so you can see me do it?
Genuine leads may not be using these hacks, we should accept only genuine leads right?