Steps
- Install ZeroSpam: SMS Call Blocker from the App Store and open it.
- Accept the Terms, then follow the set-up page that opens iPhone Settings.
- In Settings open Apps > Messages and, under Text Message Filter, choose ZeroSpam. (On older iOS versions: Settings > Messages > Unknown & Spam.)
- Back in ZeroSpam tap Add rule, choose SMS, and enter the word you want filtered, for example casino.
- Use Try a text in the app to paste a message and see whether your rules would filter it.
What happens to a matching text
Messages moves it to the Junk (Spam) list. It is not deleted and you can still read it there. Apple applies message filters only to senders who are not in your Contacts, so texts from people you saved are never filtered.
Apple does not allow any app to delete a text or stop it from arriving, so no app can block a spam text outright on iPhone. Filtering to Junk is what Apple offers.
Words that are written in disguise
Spam often hides a word as c.a.s.i.n.o or ca$ino. With Smart matching (Pro) one rule for casino also matches those spellings. Without it, a rule matches the word as you typed it.

