How to Block Spammy Text Messages on an iPhone
iOS 11 adds a new SMS filtering feature that allows you to automatically filter spam text messages in the Messages app. It works similarly to the call-blocking feature added in iOS 10. Once activated, you’ll have two tabs in your Messages app—one for real messages and one for “SMS Junk”.