Live: Watch Apple's event today Walmart Black Friday deals start Nov. 3 New Microsoft Office rollout Bitcoin nears all-time high New trailer for The Batman Black Adam teaser trailer with The Rock

Disable the ability for anyone to direct-message you on Twitter

Twitter has opened the DM flood gates. Here's how you can ensure not just anyone can message you.

The new DM button that shows up on account pages when you can private message someone. Jason Cipriani/CNET

On Monday, Twitter announced it was rolling out a feature that allows anyone to send a direct message to or receive one from anyone else. Prior to this feature, you could only DM with people who followed you (and you followed back). The new feature allows anyone that follows you the ability to send a private message, eliminating the need for you to follow them as well.

Uncheck this box if you don't want receive random messages. Screenshot by Jason Cipriani/CNET

You can enable or disable the new direct message feature by logging into your account on the Web and visiting the settings page. Click here to be taken directly to it after logging in, or sign in and click on your profile photo, followed by Settings, then Security and Privacy. Scroll down to the bottom of the screen and uncheck the box (or make sure the box isn't checked) if you'd rather not receive messages from just anyone.

Additionally, when viewing a user profile on either the iPhone or Android Twitter app, you'll see a new private message icon indicating you can message the person.