<ul data-eligibleForWebStory="false">The article explains how to prevent spam messages on an iPhone using various methods.Enabling the 'Filter Unknown Senders' feature in Messages app helps separate messages from unknown contacts.Blocking specific spam senders and disabling notifications from unknown senders are additional measures to prevent spam.The article also mentions a feature to automatically delete OTP and verification codes to keep the inbox organized.