You can limit the number of people contacting you on WhatsApp. To do so, you need to go to your WhatsApp settings, Privacy option and choose “My contacts” or Nobody. This will prevent unknown contacts from reaching out to you.