Follow

Masto mods and admins, please open - new anti-spam tool 

Say hello to Ivory, a new anti-spam tool for Mastodon. I've been working on this under wraps for the masto.tech mod team this weekend. This can auto-handle reports for you. Please let me know if you're having troubles setting it up or running it. It's using Selenium (I know, I know) so things will probably break. Still, it's a workable stopgap measure while we await the Moderation API.
github.com/bclindner/ivory/

@ashfurrow @socialskeleton @Gargron I don't know many more admins and mods, get the word out, let's fuck this spammer up

Show thread

Note that this still requires users to report - a different system tracking recent users' replies needs to be implemented here to nip this problem in the bud.

Show thread

IvoryAutomod update 

IvoryAutomod (name tenative, someone else is using the Ivory name proper) is already showing some glaring bugs (namely, reports to local users are broken). I'm almost done with cleaning up the code and fixing them, hopefully this evening I'll have everything works.

Show thread

IvoryAutomod update 

Eugen has contacted me directly about the new Moderation API work as work has started on that again (can't imagine why...)

I intend to have the new API implemented as a driver for the system soon as possible so it's ready immediately. No major config changes should be necessary for this.

Show thread

@bclindner @ashfurrow @Gargron Thank you for writing this. Unfortunately, I'm hosted and can't get that under the hood, but I'll boost.

@socialskeleton You can run this on your local machine if you'd like - all it needs is credentials to a mod account and a Firefox driver. I'm actually not even sure it can run without a window manager.

@socialskeleton Again, if you need help setting up (not tech savvy or whatever) let me know, I can maybe help you out.

@bclindner It should be able to run with a Xvfb or Xephyr instance and a simple WM like TWM, if you wanted to wrap it in an API on a VPS.

@SuperFloppies Ideally I want to cut Selenium out entirely. It sucks for this. I could probably do this with just an HTML parser and it'd be cleaner to run, if more involved to write and maintain.

@bclindner Probably needs JS too.

I wish I could offer an assist to make a lightweight port but I am really down and sick. I haven’t touched a computer in a couple of days. ☹️

@SuperFloppies I think the moderation part doesn't use React, it's more of a static site, so I think request replaying will work here!

@bclindner
Fwiw most selenium-based stuff will run fine without an active X session using xvfb. I hesitate to say it with much more certainty cause I'm a few years our of date on this stuff.

If I get some time to try it out in the next few days I'll report back.
@socialskeleton

@norm I suppose I should write Windows and Mac install instructions too, huh?

@bclindner I got it to work headlessly in Docker with the `selenium/standalone-firefox` image. So if you're cool taking on a Docker dependency it should work equally fine in Windows/Mac/Linux (and headlessly at that). It may have required a few tweaks to get going (or it was just me not being a Python guy).

I'll see if I can bundle it up into a PR at some point.

@norm Great stuff! Heads up if you're doing a PR, though, I've got a major code restructure coming up that just kinda flattens things until I get my Python code structure shit together. I'm still trying to spin up instances to test that branch.

Masto mods and admins, please open - new anti-spam tool 

@bclindner thank you a lot, this is exactly what fedi needs right now!

Masto mods and admins, please open - new anti-spam tool 

@espectalll This is what happens when you piss off the instance full of software developers 😎

Masto mods and admins, please open - new anti-spam tool 

@bclindner just keep in mind spammers are using link shorteners, so is Ivory following redirects?

Masto mods and admins, please open - new anti-spam tool 

@espectalll Uh-huh! Added that the moment I saw it this morning. Use the link_redir rule.

Masto mods and admins, please open - new anti-spam tool 

@espectalll If the spammer finds a way around that, you can probably just add their phrases to the automod and it'll still catch them.

Masto mods and admins, please open - new anti-spam tool 

@bclindner tbh that way probably is selfhosting something or using a tool which handles requests depending on user agent or IP or something, so it would probably still be easy to block

Masto mods and admins, please open - new anti-spam tool 

@espectalll Ooh, IP tracking! I can make that work.

Masto mods and admins, please open - new anti-spam tool 

@bclindner

Makeshifts last the longest.

Masto mods and admins, please open - new anti-spam tool 

@sydneyfalk Gotta do what we gotta do. I'm doing my best to write this such that when the mod API hits, I can just write a replacement class for this Selenium crap and throw it out, so maybe we can still get some use out of it later.

Masto mods and admins, please open - new anti-spam tool 

@bclindner

Oh, believe me, it wasn't criticism at all. Makeshifts last the longest is a bit more of a warning -- don't assume the people who rely on using it will care about evolving it further, and don't assume the people who rely on use of it will understand the details, and all that. ❤️

I'm in favor of augmented moderation efforts; I think it's a logical next step. It just has to be a supremely cautious one, that rolls back if needed.

Masto mods and admins, please open - new anti-spam tool 

@sydneyfalk Honestly, I just have a vested, spiteful interest in dealing with Mastodon's most recent lovely spammer for ruining my Saturday morning - that's more than enough for me to want to do this myself.

Masto mods and admins, please open - new anti-spam tool 

@bclindner

Well, let me say -- and I don't believe we know each other that well, nor do I presume this is true of any other aspect -- but you're tanking for people like me who hate this ACTUAL divisive, harassing bullshit, and can't really do this stuff.

So thanks. ^_^ I know (well, assume anyway) that you didn't do it for thanks, but thank you.

It's nice to see some folks have a good grasp of defense. <3

re: Masto mods and admins, please open - new anti-spam tool 

@bclindner Just in case, cc @thegibson

re: Masto mods and admins, please open - new anti-spam tool 

@drwho @bclindner

Already looking at it.

Masto mods and admins, please open - new anti-spam tool 

@bclindner @anna idk if you've seen this about but it may be helpful.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!