Pseudo Captcha
The field cliving_mandatory is for spam protection (remove it if you don't need spam protection). Ask a calculation task there. It's good to write the task down in words, so most manual spammers are not able to understand. The first letter c in the name cliving_mandatory represents the required calculation result. In our example it is 99 because the ASCII code of the lower case letter c is 99. So aliving_mandatory would need the result 97, bliving_mandatory 98 and so on.Rendering Exemple vor cliving_mandatory
HTML: <input size="77" type="text" name="cliving_mandatory" />However...
The pseudo captcha shown above helps in many cases, but if a form is maliciously spammed using automation, it can easily be bypassed. Since u5CMS version 12.9.5, stronger spam protection is provided by Cloudflare Turnstile, which replaces Google reCAPTCHA.CLOUDFLARE TURNSTILE (u5CMS 12.9.5 and later)
In your [fo:][:fo]-forms, just before the submit button, you must require grc.php:<?php require('grc.php') ?><input type="submit" value="send">
The filename grc.php has been retained. Existing require('grc.php') calls do not need to be changed.
In the file config.php, define the following:
- $requireturnstileonfrontendformsave='yes';
- $u5turnstilesitekey='writekeyhere'; // Get it on https://dash.cloudflare.com/
- $u5turnstilesecret='writesecrethere'; // Get it on https://dash.cloudflare.com/
When upgrading from Google reCAPTCHA, replace the old reCAPTCHA settings in config.php with the Turnstile settings above. You need new keys from Cloudflare; Google reCAPTCHA keys cannot be used for Turnstile.
GOOGLE RECAPTCHA (u5CMS versions before 12.9.5)
In your [fo:][:fo]-forms, just before the submit button, you must require grc.php:<?php require('grc.php') ?><input type="submit" value="send">
In the file config.php, define the following:
- $requiregooglerecaptchaonfrontendformsave='yes';
- $u5googlerecaptchasitekey='writekeyhere'; // Get it on https://www.google.com/recaptcha/admin/create
- $u5googlerecaptchasecret='writesecrethere'; // Get it on https://www.google.com/recaptcha/admin/create