codehaven - php snippets - coding help
Generic filters
Exact matches only

Stop Contact form 7 from getting spam

14th August 2019


SEO category
By adding what the videos below show, you should prevent 89.7% of spam from getting to you…(this is approximate!)

1. Add GDPR consent field

by adding this simple tick box you will be a little further to GDPR rules that we all love and makes our lives so much easier (lol)

2. Add a Honeypot

once you have added the GDPR tick box that should stop simple sign ups on your contact forms, add a “Honeypot”. This is an invisible field that only robots can see, so only robots can fill it out. if it has content then it would be a robot. Simple…..

Add a recapture to your contact form 7

Although not my choice for forms, as I prefer to use Elementor’s built in Recature and form. but here it is anyway.

Was this code snippet helpful?