My contact form has been getting a ton of spam messages. My contact form has several fields. I have noticed the email address field from the spam messages always contains the strong Staceyrow and the message field always contains one or more of the following: payday, loan, loans, lender, lenders. The location field always contains the word Darussalam.
I am using a php contact form and on the back end, I am able to enter a regex for each field.
What regex do I have to enter for the email field so that if the user enters anything containing "Staceyrow" (not case sensitive) in that field, the form doesn't submit?
What regex do I have to enter for the message field so that if the user enters anything containing "payday" or "loan" or "loans" or "lender" or "lenders", (not case sensitive) in that field, the form doesn't submit?
What regex do I have to enter for the location field so if the user enters anything containing "Darussalam" (not case sensitive) the form doesn't submit?