Hi
I'm trying to figure out the best way of checking an email address against a ban list which may have whole email addresses or just domains. I was thinking take all the bans from my banned email table, fetch them into an array, and then use a php function to compare the two strings and see if the banlist rows are contained within the email address entered. I've not done much work with strings, would preg_match be the best option for this?
Any help appreciated
Cheers
Dan
I'm trying to figure out the best way of checking an email address against a ban list which may have whole email addresses or just domains. I was thinking take all the bans from my banned email table, fetch them into an array, and then use a php function to compare the two strings and see if the banlist rows are contained within the email address entered. I've not done much work with strings, would preg_match be the best option for this?
Any help appreciated
Cheers
Dan