WhatsApp is testing a feature which will let users block messages from strangers or unknown numbers. The feature called Block Unknown account messages is being tested on the Android beta version 2.24.17.24 which is still in the development stage so we might be a few months from a possible public release.