Views
Replies
Total Likes
AEM doesn't have a built-in CAPTCHA, but you can integrate third-party services like Google reCAPTCHA or create a custom puzzle CAPTCHA.
Frontend (HTL): Add the reCAPTCHA widget to your form.
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<div class="g-recaptcha" data-sitekey="your-site-key"></div>
Backend (Java): Verify the CAPTCHA response on form submission.
String recaptchaResponse = request.getParameter("g-recaptcha-response");
// Verify using Google API
You can also use other third-party CAPTCHA services like hCaptcha or FunCaptcha by following similar steps.
Views
Replies
Total Likes
Views
Likes
Replies