Not sure if this should be classified as a bug, or intended. But I noticed that Discourse will censor out censored words from a URL, even when it’s not shown. So if someone links to something that contains a censored word, but they link it through the hyperlink button — Discourse will still censor out the words and mess up the link.
For that matter, perhaps the censored word feature shouldn’t mess with URLs at all, even if they do show? Or if a URL contains a censored word, hide the URL altogether, but just force a hyperlink to it?
I just encountered this as well. I have blocked about two dozen most offensive curse words of our language, mostly related to sexuality and human anatomy. In our culture these are not considered civilized discussion, and we don’t have an age limit for members.
Also, I sort of what to keep censor words working on URLs… We actually use it as a brief way to combat some of the link dropping we get.
We’ve added things like adf.ly to our censor word list as users were trying to use it in a non-community-oriented way, so this way their links would break and it would be obvious to us mods that the link they had was not appropriate (so we should take action on their post).
I’m not saying that is a right solution, but so far, nothing else exists for blocking certain domains. And we wanted something semi-automated, so this fit in nicely.
Until there is way to censor URLs I hope this approach remains as an alternative.
True, without regex support it can be tricky to come up with something that doesn’t have false positives.
But it is about the only thing that works so far short of inspecting raw / cooked on a post by post basis to moderate.
Sorry, just to expand, you are looking for a function that allows you to ban certain domains in hyperlinks… like "you shall never link to bit.ly" ? (fair warning, even if implemented there are s of workaround)
We ban most of those too. But yes, we have fairly strict policies on links on our site. Shorten URLs are not permitted, which rules out many of them. Plus we’ve had issues in the past with some sites generating 10-50 users over the course of months to find/dredge up topics to offer their services that are in our list.
And yes, we do eventually ban these members, but by stopping their instant gratification of seeing their link in a working order, they do quickly stop trying. Many also use their real URL because they magically believe we’re a “do-follow” site (even though we do utilize the no-follow setting in our install). So for that reason, they typically avoid URL shorteners.