You can use captcha to avoid spam. The document below will guide you on how to integrate CAPTCHA into your site:
Adding to Contact Form 7
Using reCAPTCHA (recommended)
Following this article: https://contactform7.com/recaptcha/
"reCAPTCHA v3 doesn’t need a CAPTCHA widget (the “I’m not a robot” checkbox used in reCAPTCHA v2) to work, so [recaptcha] form-tags are no longer necessary. If [recaptcha] form-tags are found in a form template, Contact Form 7 5.1 or higher ignores them and replaces them with an empty string."
If you use the version 5.1 and higher, please make sure you use reCAPTCHA V3 also.
Step 1: Get the keys
- Go to Google’s reCAPTCHA admin page.
- Register your site
- Get the site key and secret key
Step 2: Enter the key pair into the WordPress admin
- Go to the admin menu Contact > Integration.
- Find reCAPTCHA panel and click Configure Keys.
- Copy the site key and secret key into the appropriate fields and save them.
Step 3: Insert reCAPTCHA tag to your form.
Using Really Simple CAPTCHA
Step 1: Install and activate Really Simple CAPTCHA
Step 2: Insert this code to your form:
Insert Text below [captchac captcha-1][captchar captcha-1 placeholder "Insert here"]
You will see your form same this: