# Censored links still work?

**URL:** https://meta.discourse.org/t/censored-links-still-work/173631
**Category:** Feature
**Created:** [December 17, 2020, 7:14pm UTC](https://meta.discourse.org/t/censored-links-still-work/173631 "2020-12-17T19:14:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [December 18, 2020, 7:53am UTC](https://meta.discourse.org/t/censored-links-still-work/173631/5 "2020-12-18T07:53:59Z")

</div>

We do moderation but it takes time and is manual work.

I’d like to use a regex pattern to destroy specific links. Can anybody help me to construct a regex pattern for a link like this?  
[text phrases](link to any page on a specific domain)

In my case `[text phrases]` may have different text versions and I would leave it original.

I need to hide only this part: `(link to a page on a specific domain)` where the **domain is always the same** , but the length and text of the link may be different.

The result should be like this:  
[text phrases]■■■■■■■■■■■■■■■■■■■■■■■■

I found the topic, that previously censor function worked the way I need, but lately was changed: [Censored words out of a URL](https://meta.discourse.org/t/censored-words-out-of-a-url/43154)

@riking \> repro:

> 1. add `adf.ly` to censored words list
> 2. post with `http://adf.ly/SpONsoREDliNK`
> 3. post renders with `<a href="http://■■■■■■/SpONsoREDliNK">http://■■■■■■/SpONsoREDliNK</a>`

@sam

> The censor only applies to text now per:  
> [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/engines/markdown-it/censored.js.es6#L18-L22](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/engines/markdown-it/censored.js.es6#L18-L22)

---

_[View the full topic](https://meta.discourse.org/t/censored-links-still-work/173631)._
