# Links with protocol other than http?

**URL:** https://meta.discourse.org/t/links-with-protocol-other-than-http/30048
**Category:** Support
**Tags:** docker, markdown
**Created:** [June 15, 2015, 3:12pm UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048 "2015-06-15T15:12:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Matthew\_Gaudet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matthew_gaudet/32/116255_2.png) [@Matthew\_Gaudet](https://meta.discourse.org/u/Matthew_Gaudet)
#### Post date: [June 15, 2015, 3:12pm UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048/1 "2015-06-15T15:12:58Z")

</div>

For an internal instance we’re trying to allow links to non-HTTP sources. ie, links of the form `application://path/to/resource`.

It seems like the `href` attribute is getting blanked on these. Is there a setting or a whitelist to change somewhere?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [June 16, 2015, 2:57am UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048/2 "2015-06-16T02:57:05Z")

</div>

I’d also love to see a way to bless certain URI formats

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [July 1, 2015, 7:41pm UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048/3 "2015-07-01T19:41:28Z")

</div>

I’d accept a PR that did this if any developers are willing to do it. The method that validates URLs is [here](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/markdown.js#L222). It would need the ability to provide a site setting that would also validate as truthy if entered.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 19, 2018, 12:32pm UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048/4 "2018-10-19T12:32:17Z")

</div>



---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 19, 2018, 1:29pm UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048/5 "2018-10-19T13:29:41Z")

</div>

This works now, just set `allowed hrefs` in site settings.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 19, 2018, 1:29pm UTC](https://meta.discourse.org/t/links-with-protocol-other-than-http/30048/6 "2018-10-19T13:29:57Z")

</div>


