How to prevent registration spam

By the way, how to disable email signup and only allow new user from social login?