There are a few ways to stop receiving unknown messages on WhatsApp. The first is to block the number that is sending the messages. To do this, open WhatsApp and go to Menu > Settings > Blocked contacts. Tap on the + symbol and add the number you want to block.The second way is to enable two-factor authentication. This will require you to enter a code that is sent to your phone each time you try to log in to WhatsApp.
There could be a few reasons why you’re receiving WhatsApp messages from random numbers. One possibility is that the sender has your phone number saved in their phone contacts, but the name associated with your number is not displayed. Another possibility is that the sender has created a WhatsApp group and added your phone number to the group without realizing that you’re not a part of the group.
There’s not a definitive answer, but one way to try to stop receiving texts from unknown numbers is to add your number to the National Do Not Call Registry.