15.3 Configure the CAPTCHA script
Step 3: In the WWW_ARCHIVE_DIR location (look under Server Administration/Site Configuration to find this setting), there should be a subfolder named "captcha".
In this location, edit the file named default.keys and update it with your LISTSERV domain name, your LISTSERV Captcha Badge from above and your unique secret key. Note that the secret key is always different from the site key, so double-check that you are using the right key in the right place. Then save this edited file in the same directory under the name captcha.keys. The data in the file is in XML format:
<config>
<script>https://listserv.example.com/scripts/wa.exe</script>
<badge></badge>
<recaptchaSecretKey></recaptchaSecretKey>
<hcaptchaSecretKey></hcaptchaSecretKey>
<cloudflareSecretKey></cloudflareSecretKey>
</config>
The CAPTCHA badge goes between the start and end tags for "badge":
<badge>SAMPLESAMPLE</badge>
The secret key for the service you choose goes between the start and end tags for that service. For instance, for Google reCAPTCHA, you would set something like
<recaptchaSecretKey>6Lfb0V0qQQQQQKrraduFrNCuBBS_Sample6ZRPuU</recaptchaSecretKey>
(Please note that this is an invalid, non-working key, used only as an example.)
IMPORTANT: For unix, LISTSERV depends on a captcha.php file in the archives/capcha directory. The captcha.php file REQUIRES PHP version 8 at minimum. It will CRASH on earlier versions (e.g., PHP 7). Please ensure that you have a new enough version of PHP installed on your server if you wish to use the CAPTCHA feature. |