I was wondering if the title of a new topic (first post) was being sent to Akismet along with the post body? I’ve noticed that most of the spam getting through currently seems to have the spam payload (phone number, what they are trying offer, etc) in the title rather than the body. In these cases the body just has a some random text but not what you would consider spam from a classical sense.
Not sure, this is a question for @eviltrout? It is a good question though. Do we send titles to Akismet?
In the meantime @seth you may want to reduce the maximum allowed title length in site settings. Beware, if you have lots of titles longer than the maximum, they will behave weirdly on edit (e.g. you can no longer save an edit of the first post unless you reduce the title length)
Thanks for the suggestion about the topic length, the spam topics do have rather long titles. I will try reducing to 100 and see if that helps a bit.
It looks like we do not. I think Akismet doesn’t support it:
That explains the high volume of spam getting through each night. When I first installed the Akismet plugin it was catching almost everything but the spammer caught on and started trying new techniques. It seems that lately the spam that gets through has the payload in the title rather than the body.
What about concatenating the title and the body together (perhaps separated by whitespace) and only doing this on the creation of a new topic? If it’s a reply to an existing topic then just use the post body instead.
Yeah @sethtvn has the right idea here
We should make that change for new topics.
I can take a stab at it and submit a PR (I know Ruby). Assuming that everyone continues to think it’s a good approach.
Sure … go for it, we would like the change
I have installed it on my Discourse instance pointing to a new feature branch in my fork. I get a decent amount of spam every night from India so we’ll see plenty of real world testing. Once I get finish testing everything I’ll rebase off master and submit a PR.
Excellent, thanks for your help on this!
You’re welcome, thank you all for providing this amazing platform. Pull request submitted.
100% of the spam messages were caught by Akismet last night.
Just merged it