In the Settings app, enabling Filter Unknown Senders for Messages to manage unsolicited texts.

How to Block a Number on Your iPhone or iPad

Unwanted calls and messages can be more than just a nuisance; they can be disruptive and even intrusive. Whether it's spam calls, unwanted texts, or emails from persistent senders, taking…