Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- #remove comments that appear to contain game keys because they're probably posted accidentally
- #this doesn't stop keys being posted in body text of submissions or titles, because that is unlikely an accidental post
- #after the comment is removed, it would still be seen in the users profile if they don't delete it
- #if this rule is causing too many false positives, then a quickfix is the first body check, edit it to (includes, regex, case-sensitive), but that would not detect if someone posts a key with any lower case character
- #unfinished (.*?)(?<!http)([s?]://)([A-Z0-9]{4,5}?-)[A-Z0-9]{4,5}?-[A-Z0-9]{4,5}?
- type: comment
- body (includes, regex): ["([A-Z0-9]{4,5}?-)[A-Z0-9]{4,5}?-[A-Z0-9]{4,5}?"] #this regex matches most steam key formats
- ~body#z (includes): ["1234", "ABCD", "XYZ", "XXX"] #try to avoid matching common placeholders
- ~body#y (includes): ["http"] #ignore post if any links. Not perfect, a regex range check is better
- moderators_exempt: false #to make it easy for mods to test
- modmail: User /u/{{author}} posted something that looks like a game key, beginning {{match-2}}... in a public comment. To try to protect the user, automod has removed the comment, and a message was PM'd to the user to explain what happened.
- action: remove
- message: |
- Warning: You have apparently just posted a game key in a public comment, beginning {{match-2}}...
- That comment has been removed automatically to *try* to prevent the key being stolen.
- But your comment might still be visible on your user profile, so you should delete it.
- In future, we suggest you could use private messages or chat to send keys, so nobody else can see them.
- ----
- If this message is mistaken, because you didn't post a key, then sorry and please [contact the moderators](https://www.reddit.com/message/compose?to=%2Fr%2FGameTrade).
- If you're certain that you want to post your key in public, then add some extra characters so bots can't steal it, e.g. 1234XXX-56789YYY-ABCDEZZZ
- If you wanted to just show someone the correct format for keys, use something like ####-####-#### or 1234-ABCD-XYZ or XXXX-XXXX-XXXX-XXXX and that won't be removed
- ---
Add Comment
Please, Sign In to add comment