Nobody can stop a spammer from sending a text to your number. What you can control is where it ends up. Done right, spam lands in a separate list in Messages, without a sound, and your conversations stay clean. It takes four layers: Apple's own spam filter, screening unknown senders, a text filter app for what Apple misses, and blocking or reporting the senders that still get through.
1. Make sure Filter Spam is on
Since iOS 26, iPhone has its own spam detection, which runs on the device. It's on by default. Texts it flags go to a Spam list in Messages, and you don't get a notification for them. To check it:
- Open Messages and tap the Filter button at the top right of the conversation list.
- Tap Manage Filtering.
- Make sure Filter Spam is on.
On iOS 18 there's no Filter Spam setting. There, filtering comes from Filter Unknown Senders and from a text filter app (below).
2. Screen texts from unknown senders
Screen Unknown Senders (iOS 26 and later) moves texts from people you haven't interacted with into a separate Unknown Senders list. You aren't notified about them unless you choose to be, although depending on your country, time-sensitive texts such as verification codes can still notify you. In recent versions of iOS, links in these texts can't be opened until you mark the sender as known.
Turn it on in Messages › Filter › Manage Filtering › Screen Unknown Senders. On iOS 18 it's called Filter Unknown Senders, in Settings › Apps › Messages.
It's off by default in iOS 26. It's quiet and effective, but it treats your dentist, your bank's alerts and a delivery driver the same way as a scammer, so you'll need to check the list now and then.
3. Add a text filter for what Apple misses
Apple's spam filter decides by itself, and you can't tell it what to block. A text filter app adds the rules iPhone doesn't have: block a whole area code or country, block texts that mention certain words, catch scam links, and keep the senders you need. iOS hands the filter every text from senders who aren't in your contacts, before it reaches your conversations.
- Install a text filter app, such as SMS Shield.
- iOS 26 and later: open Messages › Filter › Manage Filtering › Text Message Filter, turn it on and choose the app.
- iOS 18: open Settings › Apps › Messages, scroll to Message Filtering, tap Unknown & Spam and choose the app.
With a filter on, Messages also gets Transactions and Promotions lists, so codes, bank alerts and shop offers can be kept apart from your conversations.
4. Block senders who keep coming back
For a number that keeps texting you, block it: open the conversation, tap the sender's name or icon at the top, then Block Contact. Blocked senders' texts aren't delivered, and they aren't told. On iOS 26 the list of blocked numbers is in Settings › Privacy & Security › Blocked Contacts.
Blocking works one number at a time, and most spam comes from a new number every time. That's where the rules in a text filter do better.
5. Report spam
Under a text from an unknown sender, tap Report Spam (Report Junk on iOS 18), then Delete and Report Spam. iMessage reports go to Apple. For ordinary texts, depending on your carrier and country, the report goes to your carrier. You can't report a text after you've replied to it, and reporting doesn't stop the sender, so block them too. In the US, the UK and Canada you can also forward spam to 7726. See how to report spam texts.
Why some spam still gets through
- iMessages never reach a text filter. Apple only passes SMS, MMS and RCS texts to filter apps. If a spam text has a blue bubble, block and report it in Messages; Apple's own spam filter may catch it too.
- Contacts are never filtered, by Apple or by any app.
- Replying turns filtering off. Text filtering doesn't apply to a sender you've replied to three or more times.
- Nothing gets deleted. Filters move texts to lists; they can't delete them. Spam waits in the Spam list until you clear it.
Don't reply, not even STOP, to texts from numbers you don't know. A reply tells the sender your number is active. Replying STOP is the right way to leave a real company's or campaign's list, but not a scammer's.
Questions
Does iPhone block spam texts automatically?
Since iOS 26, partly. Filter Spam is on by default and moves texts that Apple's on-device detection flags to the Spam list, without a notification. It doesn't let you add your own rules, so a text filter app is still useful for spam it misses.
Can I block all texts from numbers that aren't in my contacts?
Screen Unknown Senders moves them to their own list instead of blocking them. Screen Time's Communication Limits can block everyone who isn't a contact, but that also blocks verification codes, deliveries and appointment reminders, so it's rarely what you want.
Why am I suddenly getting so many spam texts?
Spammers send to huge lists of numbers, many of them generated rather than stolen, so a wave of spam doesn't mean you did anything wrong. Replying, even to say STOP or "wrong number", marks your number as active and tends to bring more.
Sources
- Apple: Screen and filter text messages on iPhone (iOS 26)
- Apple: View and recover spam messages on your iPhone
- Apple: View conversations from unknown senders in Messages on your iPhone
- Apple: Report spam and block senders (iOS 26)
- Apple: Block contacts on iPhone (iOS 26)
- Apple Developer: SMS and MMS message filtering
- Apple: SMS filtering and privacy
- FTC: Why it's not rude to ignore "hi, how are you?" texts from strangers