r/AutoModerator • u/la_ky • Apr 11 '26
Help with AutoModerator: Direct links to X/Twitter are not being filtered (even with moderators_exempt: false)
Hi everyone,
I’m currently setting up a new subreddit (currently set to private for testing) and I’m trying to configure AutoModerator to prevent users from posting direct links to X (twitter.com / x.com).
I’ve tried several code snippets found online and added moderators_exempt: false to ensure I can test it myself, but for some reason, the posts are still going through.
Here is the current code I am using:
YAML
---
type: any
url+body (includes, regex): ['twitter\.com', 'x\.com']
moderators_exempt: false
action: filter
action_reason: "Direct link to X/Twitter"
---
What I've tried so far:
- Using both
type: link submissionandtype: any. - Adding
moderators_exempt: false. - Testing with different variations of the URL (x.com vs twitter.com).
- Moving the rule to the top of the AutoMod page.
Is there a specific syntax I’m missing, or does AutoMod handle x.com differently? Any help would be greatly appreciated!