How to Block Text Messages?

In order for you to block a text message is a to block the senders email address, or if they are using a phone number you have to block that number and the texts will stop.