Pritam asked 3 years ago

I want to implement a Google Recaptcha component in AEM. I am quite new to AEM, and it will be very helpful if anyone can kindly guide me with this issue.

11 Answers
Var answered 3 years ago

All you need is to do these steps
1) Get the Google g-recaptcha key with your domain name. (i.e. your website domain name which might differ for DEV, Staging, prod, Etc environments)
2) in your JSP/HTML code add the data-sitekey (example as shown below)
3) if your Captcha verification is going to be done in OSGI layer you have to write it in the particular java class for receiving the input of the captcha and verification, based on the result you have to continue for the remaining code logic (Same applies for the Java Script verification process if any validation of the captcha is done at Script level.)
4) Make sure to give the flexibility to author the data-sitekey in the component level so that moving across environments will be easier to update by authors.
Example HTML snippet for sitekey

<script src=””></script&gt;
<form action=”authenticationServlet” method=”post”>
Username: <input type=”text” name=”username”> <br> Password:
<input type=”password” name=”userpassword”> <br>
<div class=”g-recaptcha”
<br> <input type=”submit” value=”Login”>

That all domain name keys will work with localhost domain for testing and development
For more information

Raj answered 2 years ago

You can refer this article

Integrate Google reCAPTCHA with AEM

click answered 6 months ago

Thanks for the nice post for me have to look the remember passwords in egde system easily and getting the function to secure the all data and web site.

suzain lian answered 6 months ago

its usually as a nice writing for me need to explain it in a better way for sure will buy essay from We Write Essay students get their essay done fast as they need help

Antonia Cummins answered 6 months ago

This is why many places have laws about Professional Powerpoint Presentation Writers not being able to act as interpreters and translators for their parents.

Your Answer