Telecommunications companies will soon be able to block scam text messages from being sent in the first place, thanks to regulatory changes by the government.