DNSBLs are the way to go.

Why reinvent the wheel?

Also, unless the CSAM tools support Misskey and Akkoma they’re useless. The fediverse is much more than Mastodon.