Is there a way registrations from certain email providers?
Ie: entering me@hotmail.com returns the result "unacceptable email address" .
I'm getting hit by spammers and want to deny all hotmail, yahoo and AOL addressess.
| SitePoint Sponsor |
Is there a way registrations from certain email providers?
Ie: entering me@hotmail.com returns the result "unacceptable email address" .
I'm getting hit by spammers and want to deny all hotmail, yahoo and AOL addressess.





then you can just continue with thePHP Code:if (preg_match('#.+?@hotmail\.com#i', $email) || preg_match('#.+?@yahoo\.com#i', $email))
die('unacceptable address');
replacing yahoo.com with something else, NOTE: the \ must be before the period.PHP Code:|| preg_match('#.+?@yahoo\.com#i', $email)
Hope that helps!
- website
You beauty!
Thanks.
Bookmarks