reCAPTCHA is a GPL Cart module that enables "Google reCAPTCHA" spam protection on your site. In order to use this module you must register an account on google.com/recaptcha
Requirements:
- CURL
Installation
- Download and extract to
system/modules
manually or using composercomposer require gplcart/recaptcha
. IMPORTANT: If you downloaded the module manually, be sure that the name of extracted module folder doesn't contain a branch/version suffix, e.g-master
. Rename if needed. - Go to
admin/module/list
end enable the module - Go to google.com/recaptcha, create your site and server keys then paste them on
admin/module/settings/recaptcha
To protect custom forms print reCAPTCHA widget manually using one of the following code:
- PHP templates:
<?php echo $captcha; ?>
- TWIG templates:
{{ captcha|raw }}