Block or allow domain extensions to register

Sup guys!

At the moment I’m trying to figure out if there is an excising plugin or a way to create a list to block/allow domain name extensions that comes with people’s emails they use for registration. Or simple said: only allow registration when using an email address that ends with, blocks .com but allow and And block every other kind of email address.

I know there is a plugin called User Domain Whitelist but it didnt give me the result I wanted, stated above.

Anybody some suggestions or feedback on this?

Thanks in advance,