How to block domain from registration

I am using UMP (Ultimate Membership Plugin) in wordpress website for the subscription and using inbuilt form of this plugin. Problem is that, some spam user registering into the site. And, I want to block specific domains to register into the website.

I have also used “Ban Hammer” plugin but that also didn’t work as well.