Just text my work mate and the Android app is called call control, and it's free.
No app available for the iPhone. If you have an IPhone all you can do is set their number to silent
Someone at work has loaded up an app that blocks texts and calls to stop an ex girlfriend hasseling him. No idea what it's called and he's got an adroid phone so I presume it's available for apple. Sorry I can't be more specific