Can somebody please teach me how to eliminate SPAM registration?

Hi team,

I have buddypress installed on my website, and I spent hours deleting SPAM membership registrations, can someone teach me how to eliminate SPAM registrations?