Luckily most spammers follow similar patterns, and aren't very persistent. So every few months I get an influx and have to take a scalpel the points in the app where we accept data (posts or users), and gently block them without affecting thousands of normal users.
Again, not too difficult because spammers (especially pastebin spammers) also don't put a lot of effort into their spam. They usually have a signature.