If you use iMessage frequently for both work and personal, there may come times when you don't want to be disturbed by messages from people you don't know. iMessage gives you the ability to disable alerts from people that aren't in your Contacts app. You'll still receive the messages, you just won't receive audible alerts for messages from people you don't know.
How to stop getting iMessage alerts for non-contacts
- Launch the Settings app from the Home screen of your iPhone or iPad.
- Tap on Notifications.
- Scroll down and find Messages. Tap on it.
- Now scroll down towards the bottom and you'll see a section for who you receive iMessage alerts from. Tap the option for My Contacts Only.
That's it. You'll now only receive alerts for messages from people you have in your contacts. It is worth noting though that this feature only works for iMessage alerts. If someone not using iMessage sends you a regular text, you'll still receive it and get an alert.
How to get more help with iMessage
If you're having issues getting iMessage to activate, get more help at the iMore forums, and for more tips, check out:

Apple store workers get surprise pay rise as union pressure grows
Apple plans to give U.S. workers a pay rise in the face of growing pressure from unions that are emerging in some retail locations.

Renders show the stunning new purple iPhone 14 Pro months before release
Apple is expected to announce the new iPhone 14 lineup later this year and a YouTube channel might have just given us our first proper look at what is sure to be the hottest iPhone 14 Pro color — a stunning purple.

Apple touts App Store benefits, says it supports jobs and small businesses
Apple has shared new research that shows the App Store continued to thrive during 2021, supporting more than 2.2 million jobs across the United States. Those jobs include coders, designers, and others.

Love your planet and your iPhone at the same time with an eco-friendly case
You don't have to contribute to single-use plastics when you buy an iPhone case. These are the best options for the best environmentally friendly iPhone 13 cases.