Is there a way to block registrations from people in certain countries?

I’m getting spammed and am looking for solutions.

Thanks!