12
Views
1
Comments
Regex or alternative solution for spam email account signups

Hi! 

We’re getting a bunch of spam signups for our application, I’ve implemented some logic before to prevent certain domains from creating an account, for this particular pattern (attached) do you think maybe we should add a condition that if there are more than 1 period before the @ then block we block it or maybe ignore any entire email address with 2 or more periods? If so, what would the Regex be? Any other suggestions of how to solve this issue? Thanks!


F43AC413-42BA-4CEB-A8C5-2E3DB3240755.jpg
2019-04-09 00-57-55
carl ruhle

Hi Fadi,

using javascript const nbr = (VARIABLE.match(/\./g).length)

The nbr variable will have the number of dots.

Regards 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.