This is a massive problem, and the main reason I haven't tried to self host a #Fediverse instance on my own again.
The first question I ask is "how do I keep #CSAM off the instance" and nobody can answer that question.
https://www.theverge.com/2023/7/24/23806093/mastodon-csam-study-decentralized-network