Form validation control based on fields content

I lately noticed quite a raise in spam messages received through Contact Forms.
I also noticed all of them have the same name and first name.

Therefore, I’m looking for a form validition control condition that says, if “first_name” ) “name” => Don’t send this form.
Is there a simple way to do this?


Hello Tanguy. You could use the gform_entry_is_spam filter filter to check the first and last name fields, and if they match, allow the submission but mark it as spam.

This example shows how to work with the name field: