The four barriers
It does not use Google reCAPTCHA or any other outside service. Cloudflare Turnstile as an option is planned, but it is not in this version.
- Honeypot: an extra field, with a real-looking field name (such as “website”), that the stylesheet moves off screen and screen readers skip. People do not see it; many bots fill it in. If it arrives with something in it, or does not arrive, it is spam.
- Minimum time: a submission less than three seconds after the form was rendered comes from a bot.
- Signed token: each form carries a token with the time, signed with your site’s security keys, which proves the submission comes from a form your site rendered. It is valid for 7 days.
- Per-IP limit: at most 10 submissions every 10 minutes from the same IP. The IP is not stored: it is counted with a one-way fingerprint that lasts those ten minutes.
What happens to spam
- The sender gets the same answer as a good submission: the bot is not told what failed.
- It is saved under the Spam tab of Submissions, with its reason: “hidden field”, “sent too fast” or “invalid token”.
- It sends no notifications or automatic replies, does not go to Kubo CRM or Kubo Mail, and its files are not saved.
- It is deleted on its own after 14 days.
- If a real person lands there, Not spam brings them back to the list. Check the tab now and then: someone who fills in the form with browser autofill and sends it in under three seconds ends up there.
What the sender sees
- If the form had been open for more than 7 days: “This form had been open for too long. Please send it again.”. With JavaScript this is never seen: the form gets a new token and resends itself, once.
- If the IP limit is passed: “Too many submissions in a short time. Please wait a few minutes and try again.”. Every attempt counts, including those sent back with errors.
Cached pages
It works with caching plugins and CDNs: there are no nonces that expire, and the honeypot does not change when you edit the form, so a page cached before the edit still works. On a cached page, though, the token’s time is the cache’s, so the minimum time hardly counts.
If you change the security keys in wp-config.php (the salts), the tokens on pages already cached stop being valid and their submissions go to Spam as “invalid token”. Clear the cache after changing them.
Behind a proxy or Cloudflare
The limit counts the IP your server sees (REMOTE_ADDR), not headers the sender can write. If your site is behind a proxy or CDN, all visitors may arrive with the same IP and share the limit of 10 submissions every 10 minutes. A developer can say which header to trust with the kubo_forms_client_ip filter, or raise the limit with kubo_forms_rate_limit (see Developers).
Adding another spam filter
A spam plugin can check each submission through the kubo_forms_spam_check filter and mark it as spam with its own reason; when you correct a submission (spam or not spam), it is told so it can learn. Kubo Forms does not ship with one connected.