Spam problems from .xyz

i am receiving several emails each day from and address of the form A@B.xyz. The names A and B change each time but they are all from .xyz. I know I can blacklist a particular email address or a particular domain but neither of those work since the names A and B change with each email.
Is there a way of blocking everything from .xyz

Yes you can block it as what I have done. Receiving lots of unwanted email like everyone else I set a rule ‘all names not in my address be sent to junk’ or you can choose delete’.