bclindner / ivory

A Mastodon automoderator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoban any links in bio that redirect to certain domains

twilight-sparkle-irl opened this issue · comments

for example: your-dating-space[.]com has been a prolific one

This is sort-of doable with bio_content if you need a stopgap - the domain that we see the most of is sexie.ru or something like that:

      {
        "name": "No link-in-bio spammers",
        "type": "bio_content",
        "blocked": ["sexie\\.ru"],
        "severity": 1,
        "punishment": {
          "type": "suspend",
          "message": "Your account has been suspended for spamming."
        }
      }

However, for this to be properly doable, I will need to implement link_content and link_resolver equivalents that check the bio instead of message content.

The bio should hopefully include the metadata, because I see most bots dropping "Website: [spam]" into those

Yeah, I specifically made bio_content include fields for that reason.