I'm having trouble with a spammer flooding my users' database with hundreds of registrations daily using aleatory IP addresses and aleatory (and fake) emails but always different first and last names. The first name and last name have a pattern of random lower and upper case letters and/or numbers. Example: First name: CEuuqMQTYp Last name: EPfxeihWbpYZlR, or First name: ANUZdGBtBdAg and Last name: IxaXzSVsiqBKMv
Is there a way I could safely use a regex pattern check and deny/block these kinds of names and prevent the DB registration?
Thanks in advance for any help on this.
You could define any name having three or more capital letters as being suspicious:
^[a-z]*(?:[A-Z][a-z]*){3,}$
Have your application flag/freeze these account openings, to be verified later by a human being.