r/AutoModerator • u/ghosted-- • Aug 27 '26
Help - AutoMod Catch and Remove Affiliate Links
Hi, I'm looking to set up Automod so I catch and remove affiliate links. Is there a way to catch certain phrases in a URL? such as:
“shopmy”
“?tag="
“source="
4
Upvotes
6
u/varkeddit Aug 27 '26 edited Aug 27 '26
Yes, Automod is highly capable for this. You don't really need to search ONLY within a URL because these patterns are unlikely to appear anywhere else. Here's an example we use to contain referrals to a specific thread:
2
u/ghosted-- Aug 28 '26 edited Aug 28 '26
Update: I think I have something that works. I've tested it on my sub successfully, so sharing here for anyone looking to ban affiliate links from their sub.
Just cut and paste into automod, no modifications necessary.