Script to identify abandoned versions of Mastodon and create a blocklist for manual upload: https://codeberg.org/GunChleoc/mastodon-scripts/src/branch/main/old_versions
I have some ideas for extra features, but this should do if you're still being hit by the current spam wave.