You can't stop people from posting whatever, but you should be able to control whether someone uses your posts as a platform to harass you and the people around you.
I've never understood why Mastodon didn't pick up this feature, which existed way back in 2010 in the ancestor of Friendica, Hubzilla, Streams, and Forte. (Attached image is from Forte.)
