The only real guaranteed method of detecting and blocking spoofed messages would be to display incoming mobile-originated messages to validate which the sender is a legitimate subscriber and the concept is coming from a valid and proper locale. This may be applied by including an intelligent routing functionality into the https://www.techiespider.com/understanding-text-messaging-apis-revolutionizing-communication/