How do I filter spam messages on my iPhone?

iOS 14

Apple has updated the Messages spam filter with three categories: All Messages, Known Senders and Unknown Senders. You can access your message filters from the Messages app simply by tapping Filters option, located in the upper left hand corner of the app. Just tap one of the three categories to view the messages you received from known senders in your Contacts or senders you do not have listed on your device.

iOS 14 Filters
iOS 14 Message Filters

iOS 8.3

Apple has added a spam filter to the Messages app in iOS 8.3. You can turn on the filter by going to Settings > Messages, then tapping the "Filter Unknown Senders" slider.

Unknown Sender Settings iOS 8.3
Your Messages app will now have two columns: Contacts & SMS and Unknown Senders. All messages sent from people who are not listed in your contacts will be added to the Unknown Senders list.
Unknown Senders List

You can view all the filtered messages by simply tapping the Unknown Senders tab. From here you can either block a phone number, add a phone number to your contacts, or tap the Report Junk button under the message to delete it.

Comments

there is someone texting me daily from deferent websites bothering so much , I can't answer or block because there is no real numbers ! tel me please how i can block it . i'm so tired . my device is iPhone 5s
Thank you very much .

Still waiting ....