SMS Shield

Home›Guides

How to block texts that contain certain words on iPhone

iPhone can't filter texts by keyword on its own. With a text filter you can send every text that mentions a word, like "loan" or "casino", to Spam.

A lot of spam repeats itself: the same loan offers, the same betting sites, the same "final notice". When the senders change but the words don't, blocking by word works better than blocking by number. iPhone doesn't have a keyword filter for texts, but a text filter app can do it.

Block a word with SMS Shield

  1. Install SMS Shield and turn it on as your text filter (the app shows you how).
  2. Open SMS Shield, tap Custom Block List and switch to Words.
  3. Tap Block a Word, type the word and tap Block.

Texts from unknown senders that contain the word now go to the Spam list in Messages.

+1 (305) 555-0112
Text Message

Get approved for a loan up to $50,000 today. No credit check, money in 1 hour. Apply: fastloan.example

Goes to Spam · blocked word: loan

How words are matched

  • Whole words, by default. Blocking bet catches "Place your bet now" but not "better" or "alphabet". Turn off Whole Words Only for a word if you want it matched inside longer words too.
  • Endings with a star. casino* catches "casino" and "casinos"; crypto* catches "cryptocurrency".
  • Case and accents don't matter. gratis catches "GRATIS" and "grátis".
  • The sender's name counts too. A blocked word also matches the sender, so promo catches texts from a sender called PROMO-DEALS.

Good words to block, and words to leave alone

Pick words that only spam uses: names of betting sites, "loan approved", "crypto", a spam brand that keeps texting you. Avoid everyday words like "delivery", "account" or "payment", because real texts from your bank or a courier use them too.

Your blocked words apply to every text, codes and bank alerts included, which is why everyday words are a bad idea. SMS Shield AI never sends codes or bank alerts to Spam by itself, and anything on your Allow List always gets through, even if it contains a blocked word.

Questions

Does iPhone have a built-in keyword filter for texts?

No. iOS can sort texts from unknown senders into separate lists and block single numbers, but it has no setting to filter texts by the words in them. That takes a text filter app.

Will it filter texts from my contacts?

No. iOS never passes texts from your contacts to a filter, so a blocked word can't hide a message from someone you know.

Can I block emoji or links?

SMS Shield blocks suspicious links by itself (Filter Options). For a specific site, block a word from its address.

Sources

  1. Apple: Block contacts on iPhone (iOS 26)
  2. Apple: Screen and filter text messages on iPhone (iOS 26)
  3. Apple Developer: SMS and MMS message filtering