How do I get rid of Sploggers and Spammers

Ever time I enable anyone can register. I keep getting a bunch of unnecessary users registering and I can prevent them. They automatically create profiles and I can't seem to block it.