5
retoor
1d

I always wanted to post something under the devrant tag.

I've worked on the anti spam bots! End result: one process handling four bots that down votes users with a low upvote count having certain content. What that certain content is, is still to be defined / fine tuned. Now it has very minimal criteria but it did successfully flag all spam posts tonight. Down vote function is not ready yet - I did not know what value to post. Probably @feuerherz / @Lensflare can provide that to me.

Not my best source ever, it's made quite quickly and it literally started with c/p-ing stuff from everywhere like several devrant clients on github to make one complete one. They all sucked :P

I hope to finish this project tomorrow night and it will be then of spam as far as I've seen how effective they are.

This is the source code: https://retoor.molodetz.nl/retoor/...
Review regarding code quality isn't needed for this one, since I've spent zero effort regarding quality. But tips about how to recognize scammers even better is highly appreciated. A review on other projects on molodetz would be appreciated btw, especially on C stuff.

I go sleepii

Comments
  • 2
    Finally

    Btw bots will lose downvote permissions pretty quickly, you'd need a larger pool or automatically create new ones
  • 2
    I will kind of miss swearing at them though.

    Can you get the bots to tell them to fuck off?
  • 1
    @devRancid I just downvoted you, and I've downvoted someone at least once every day or so for a long time.

    So, lower frequency of downvotes: problem solved.
  • 1
    @retoor For downvoting there is the "vote" endpoint with the url encoded parameter "vote" and the value -1.

    You can have a look at the code from OmerFlame for more info:

    https://github.com/OmerFlame/...

    It‘s a bit messy. The relevant function name is "voteOnRant"
  • 0
    For better spam recognition, I suggest to also check for a minimum amount of letters (length of the rant), because if it’s very short, then it’s probably not spam.

    An image added to the rant increases the likelihood of being spam, imo.

    Maybe you could implement a score system:
    Many factors contribute to that score and if the score is above a specific threshold, it’s considered spam.
  • 0
  • 0
    @donkulator this is probably spam but not ad spam. I think the anti spam bots from retoor are for stopping the ad spam.
  • 0
    Rants above a specific length should also increase the spam score.

    (Below a specific length should decrease the score)
  • 1
    @retoor do the bots use different training data so that they have to have a consensus in some form?
  • 1
    Look for usages of crypto related words, supplement related words and space separated phone numbers.
  • 2
    @Ranchonyx space separated phone numbers, emails and urls.
  • 1
    @Lensflare it does for phone already. Email not yet
  • 2
    @ScriptCoded no, they're very stupid and lightweight for me to serve.
  • 0
    @devRancid when they downvote, it's not implemented yet. And I doubt, i also have still my down vote rights.
  • 1
    @donkulator yes, we will design a good message eventually.
  • 1
    @Lensflare hmm, I tried that. Will look into that again.
Add Comment