This intervention is so straightforward that we're used to seeing it (and expect it) on most of the internet already: require people to sign-in in order to take some actions.
This straightforward approach uses a user's choice to create an account and log in as a mechanism of trust, and rewards that trust with additional functionality. This has several benefits:
Limiting powerful features to logged-in users does not mean not allowing anonymous access. Anonymous access and use can be safe in a variety of contexts. However, the presence of any of these features should generally be behind some kind of authentication barrier:
These are guidelines, not rules. Well defended systems and well designed systems can sometimes offer narrow instantiations of these functionalities safely.