Ability to reject certain email addresses on forms

It’d be great to be able to reject certain email addresses on certain forms, i.e. if a user tries to enter a gmail, hotmail or yahoo domain, we’d love to be able to serve them the message “Sorry, please enter your business email”.

If this is a certain feature that I’ve missed, or there is some custom code out there that would do the trick, I’d love to know! Thanks.

You can probably try something like this

How can I change or remove HTML5 form validation default error messages?

Otherwise these are the more complicated solutions

Check if an email address is not a “free webmail” (hotmail, yahoo…)
how to restrict specific email domain(s) while submit a form