Check if a an email address is not a "free webmail" (hotmail, yahoo...)
<p>Edit: My Website is offering a service to Gmail and Google Apps users only, and do wanted to make sure that others free email users doesn't get an error message when they initiate the oauth pairing.</p>

<p>so here is the deal : either I try to figure out that's a Gmail/Google Apps address, or try to prevent popular free mail users from trying to subscribe.</p>

<p>I want to prevent all "free" email addresses that belongs to Gmail, Hotmail, Yahoo, etc... from subscribing in my website.</p>

<p>How can I do that correctly in javascript? 
Here a first script I have developped :</p>

<pre><code>var domain_matche = /@(.*)$/.exec(email);
var domain_name = domain_matche[1].substring(0, domain_matche[1].indexOf(".", 0))
if (domain_name == "hotmail" || domain_name == "yahoo" ) {
      alert("not a valid email");     
} 
</code></pre>

<p>But it doesn't detect email like test@hotmail.co.il or test@subdomain.hotmail.com.</p>

<p>Could you please help? Thanks a lot!</p>
