nostr.band has a spam list API that I was thinking about leveraging but not sure how well it works.
Discussion
This could be of interest. https://github.com/blakejakopovic/nostr-spam-detection
Worth noting that spam or flood attacks don’t just come in the form of kind 1/42. You need protection against other non-content focused kinds too.