You may deactivate all possible spam messages using the Messages app on an Android phone. Tap the three-dot symbol in the top right corner of the app and go to Settings > Spam protection, then toggle the Enable spam protection switch to the on position. This will prevent all future messages containing links, pictures, or videos from being sent to your phone.
Open the Messaging app on Android and hit the three dots in the upper right corner. Now any message that contains a hyperlink will be blocked from reaching you.
Check the settings on your phone. Look for the three dots in the top right-hand corner of your text on an Android phone. Select "People" and "Options" by clicking on it. Then, choose "Block" to stop getting spam text messages from that number. Click the I in the top right-hand corner of the spam text on an iPhone. This will prevent that number from sending you further texts.
On Android, how can you block SMS messages?
How to Block Spam Text Messages From an Email Address on Android
It may take some time before you can send another message though.
Android's Spam Filter/Block function is designed to hide communications. Messages from blacklisted mobile numbers on your Android phone will never be received or viewed. Mobile numbers can be blacklisted by an individual user, a group, or the entire list of blocked numbers.
How does Android's block message feature work? When you send a message to one of these numbers, Android will automatically block it so that you never receive any further notifications from that number. If you try to view the message later, you won't be able to read it either - just like if the sender had never sent it in the first place.
Who can blacklist numbers? Anyone with access to the Internet can use the spam filter. The spam filter is turned on by default, but you can also block numbers manually. You can also block numbers for individual apps if they're not configured properly. For example, if an app isn't set up as the owner of its own messaging account, it will fail to send and receive messages correctly even though you haven't blocked it yet.
What happens when I block a number? When you block a number, it won't appear on your contact list anymore. You won't be notified about new messages from that number either because the sender has decided not to share their email address with you.
Unblocking Text Messages on Android