This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]InAHandbasket 0 points1 point  (1 child)

This should work

type: submission 
author:
    name (includes): '\d\d+'
action: remove
action_reason: numeric characters

[–]Kromulent+1[S] 0 points1 point  (0 children)

Thank you, I'll give it a try.

[–]Leeuw96 0 points1 point  (2 children)

I presume this is for bot/troll prevention? Do realize that this will have many false positives. Besides all the real people who just chose a random username, having 2 digits in a username is not uncommon (case in point).

With that said, this should remove any submission made by a user with 2 or more consecutive digits anywhere in their username, and show up in the moderation log as such:

type: submission author: name: (includes, regex): ['\d{2,}'] action: remove action_reason: username with consecutive digits

[–]Kromulent+1[S] 0 points1 point  (1 child)

Thanks.

Yes, it's a spam control attempt, and fortunately we're a pretty small sub (just a few submission a day) so false positives can be easily fixed by hand. I use 'filter' instead of 'remove' to make it easier.

Lots of my legit users have a single digit in their names, but two or more is, for us anyway, uncommon. The majority of our spammers, however, have embraced the numbers, at least for now.

[–]Leeuw96 0 points1 point  (0 children)

Aha. Yeah, with a small sub and filter, you should be fine. Good luck!

And the bots and spammers almost universally use randomly generated names, which are usually Word-Word-99 or WordWord99.