How to block text messages and callers

The following are from third parties.

google

How to block text messages on Android

How to block text message (illustrated guide from WikiHow)

How to stop SMS spam on your Android or iOS phone (PC World)

Tools for Verizon customers