If spam keeps coming from new numbers that share an area code, blocking them one by one is a losing game: each text comes from a number you've never seen before. iPhone has no setting for blocking an area code, but a text filter can do it.
Why iPhone can't block an area code by itself
Block Contact in Messages and Phone works on one number at a time. There's no way to type a pattern like "every number that starts with 705". Spammers know this, which is why many of them send each text from a different number in the same area.
Block an area code with SMS Shield
SMS Shield is a text filter for iPhone. Once it's turned on, you can block an area code with a star, which stands for "any digits".
- Install SMS Shield and turn it on as your text filter. The app walks you through it, or see how to turn on a text filter.
- Open SMS Shield and tap Custom Block List.
- Under Senders, tap Block a Sender.
- Type the area code followed by a star, like
705*, and tap Block.
From then on, texts from any number in that area code go to the Spam list in Messages instead of your conversations.
Text Message
Hi, are you still looking for work? Earn $300–$500 a day from home. Reply YES for details.
Area code, country code or prefix
The same star works for anything a group of numbers has in common:
| Type this | It blocks |
|---|---|
705* | Every number in area code 705, however the number is written |
+1705* | The same, written with the country code |
+44* | Every number from another country, here the United Kingdom (see blocking a country) |
*0100 | Every number that ends in 0100 |
How the star is read: without a plus, a rule is checked against the number after its country code. So 4* catches area code 416 in Toronto, but not texts from the United Kingdom (+44). To block a country, start with the plus.
What if a number from that area code is someone I know?
Texts from people in your contacts are never filtered, so friends and family in that area code still reach you. For a number that isn't in your contacts, like your dentist or a delivery service, add it to SMS Shield's Allow List. The Allow List always wins over the Custom Block List.
Questions
Does blocking an area code stop calls too?
No. SMS Shield filters texts only. iOS doesn't let a text filter touch calls.
Do blocked texts get deleted?
No. iOS doesn't let filters delete messages. Blocked texts wait in the Spam list in Messages, without a notification, until you clear them.
Does it work for iMessages?
No. Apple only passes ordinary texts (SMS, MMS and RCS) to filter apps, never iMessages. For a blue-bubble iMessage, use Report Spam and Block Contact in Messages.