Can you block someone on an Iphone?

When you text on an iphone, is there anyway you can block a person's messages coming to you?

That is easy, you just need to click this mark ( i ) next to the number. It's like you are trying to add that number to your contacts, but instead of clicking creat new contact scroll down and will see this " block this caller ". When you do that. You won't receive any calls or messages from that number.

Yes. Go to Settings>Phone>Blocked and then press "Add New" and just add the number or contact you want to block. This works if you have ios 7.

There are several ways to do this. You would not get any calls or texts from the person you block.

First option: Go to Settings/Phone/Blocked. Click on Add New and find the person you want to block.

Second option: When you get a call or text, click the contact info for the sender and scroll down where it says "Block this Caller" (it will block texts as well). You can also go to the person directly from your Contact List.