Please search the Community as this has been discussed many times.
The most scalable client-side code (there are logs of broken "recipes" out there is what I posted here:
Disposable Email Addresses. This method properly separates your list of banned domains (in a separate text file) from the Forms 2.0 API logic.
Also, you should post to Products, which is the support section, not Marketing Central.