Email obfuscation detection
Posted: Sat Dec 13, 2008 9:55 am
I'd like to be able detect people trying to save email addresses in a particular field, both obfuscated (i.e. user_NOSPAM [AT] example (DOT) com ) and plain text, since I don't want them to be able to put any form of email address in this field. Now I've grabbed the list of TLDs from iana.org, and built a small function with a for loop that does quite a lot of stripos string searches for things like '[dot]'.$tld, etc. But I was curious if anyone has run across such a function that is more exhaustive and proven to work. I realize this will not be infallible, but I want to put up some sort of guard against this. Thanks.