Thread:Project:Support desk/Filter 'a href' but not/reply

Hi!

setting $wgSpamRegex is definitely the way to go. If that does not work correctly, the value you have set it to, is wrong. In your example the starting and closing wrapper of the regular expression is missing so that it produces unexpected results. In contrast this one should work:

$wgSpamRegex = "/". # The "/" is the opening wrapper "\<\s*a\s*href|". # This blocks all href links entirely, forcing wiki syntax "/i";                    # The "/" ends the regular expression and the "i" switch which follows makes the test case-insensitive # The "\s" matches whitespace # The "*" is a repeater (zero or more times) # The "\s*" means to look for 0 or more amount of whitespace