How to block spam texts from a whole area code on iPhone

You block a spam number, and an hour later the same text arrives from a number that's almost identical: same area code, same next three digits, different last four. Political campaigns and spammers send from big blocks of numbers, so blocking them one at a time never ends.

iPhone can't block a whole area code or number range by itself. Here's what it can do, and how to cover the rest.

1. What iPhone can do on its own

Screening helps, but it treats every unknown number the same: your dentist's reminder and a campaign blast end up in the same place. And blocking one number does nothing about the next number in the block.

2. Filter the whole range

iPhone lets a text-filter app sort texts from unknown senders. That's how you can send a whole block of numbers, like (555) 123-0000 to (555) 123-9999, or a whole area code, straight to Spam.

We make one called SMS Range Filter. You type one number from the spam and tap Filter all of (555) 123-XXXX, which covers all 10,000 numbers in that block. You can also filter an entire area code, a whole country (or every country but yours), or keywords like "chip in" or "donate". Matching texts go to the Spam list in Messages, with no sound or notification.

  1. Install SMS Range Filter from the App Store and add a range or area code.
  2. Open Settings → Apps → Messages → Unknown Senders.
  3. Tap Text Message Filter and choose SMS Range Filter.

It's free for 3 ranges or countries and 3 keywords; unlimited is $2.99 once, with no subscription. Everything runs on your iPhone, and nothing is sent to us.

Good to know