Only allow 'business' email address register on website

Ian picture Ian · Dec 14, 2011 · Viewed 8.9k times · Source

We are looking to build a new website that is specifically for commercial/business use. We need to only allow 'business' email addresses register. So users with Gmail, Hotmail, Yahoo etc cannot apply with those email addresses.

Is there a way to do this, other than creating a blacklist of domains such as gmail.com, hotmail.com etc? It will be an international site - so it will be impossible to blacklist all of the public email providers.

Thanks Ian

Answer

Gryphius picture Gryphius · Dec 14, 2011

As others have stated, it doesn't really make much sense to try to detect a business customer based on his email domain, but if you really wanna go down that road, blacklisting is your best bet. The spamassassin freemail plugin provides a good default blacklist:

http://svn.apache.org/repos/asf/spamassassin/trunk/rules/20_freemail_domains.cf