How to block calls/SMS by contact name (might have multiple phone numbers)? I'm using Moto X. I used to blacklist spammers directly into the downloaded app or the built-in Android blocker.

The problem is that every time that I reset my phone to factory settings, I have to add all numbers again, one by one.

So I created a contact on Google called "SPAM", and inserted all spam numbers into it.

Is there a way to simply block the contact called "SPAM", instead of adding dozens of numbers again?
From within the stock Android environment, you can at least force contacts to the voicemail. It is not possible to block SMS directly, at least not without root (to my knowledge).

I have a Nexus 4, so your options might differ from what I have.

If you go in the People app, you'll be able to find your SPAM contact. In the top-right corner, you'll have the ⋮ button (or the menu button on the device). There will be an option "All calls to voicemail". If you check this, all numbers within that contact will be sent to your voicemail and won't vibrate/alert you.