I got this info from the Android forum and think it is useful:
Since this is a Motorola Photon forum, I presume you are using Sprint?
Sprint provides a simple way to block/unblock numbers:
Text 9999
block NNNNNNNNNN (ten numbers)
or
allow NNNNNNNNNN
This works to block calls. I am not positive it will block texts, but I think it does.
You can also log into your Sprint account, go into permissions and block the numbers that way too.