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?

Thanks

Hello Tanguy. You could use the gform_entry_is_spam filter https://docs.gravityforms.com/gform_entry_is_spam/ 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: