I had in mind to move some of the spam prevention logic we use here on Discuss into an extension. But because building UX takes a ton of time I never did, and JS still isn't my strong side ( 😞 ).
So, while on my vacation, I rushed a quick package together for those of you that are really feeling the pressure from users spamming links. If anyone wants to give this a spin, that would be great.
All instructions are on https://github.com/luceos/flarum-simple-spam-tools
Installation (for now) can only be done using:
composer require luceos/flarum-simple-spam-tools:dev-master
I haven't tested this yet, so if it breaks just remove it using and delete the lines in your extend.php
again:
composer remove luceos/flarum-simple-spam-tools
For those getting spammed, enable these defaults:
(new \Luceos\Spam\Filter)
->allowLinksFromDomain('luceos.com') // extra outside domain you want to allow in links
->checkForUserUpToHoursSinceSignUp(24)
->checkForUserUpToPostContribution(5)
->moderateAsUser(1), // your user ID
new \Luceos\Spam\UserBio,
new \Luceos\Spam\CommentPost,
new \Luceos\Spam\Discussion,
See the repository on how to add this. There's also some explanation on these.