How do I prevent random people from messaging me on Facebook?

I don't mind it if my friends and families that I had added to send me messages, but I want to find the function to prevent random strangers from contacting me.

For some reason, in the privacy settings, I can't find the function that does that kind of thing anymore.
8 answers 8