# Restrict domain name autolinking so M.Sc and B.Sc are not auto linked

**URL:** https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837
**Category:** Feature
**Created:** [2017 年 12 月 11 日午後 7:40 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837 "2017-12-11T19:40:15Z")
**Posts on this page:** 15
**Page:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 2 月 1 日午前 2:30 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/21 "2018-02-01T02:30:17Z")

</div>

Feel free to add, I guess I am ok with `uk|au` and some other one’s, your call which you want added, just edit it in here: [https://github.com/discourse/discourse/blob/master/config/site\_settings.yml#L540](https://github.com/discourse/discourse/blob/master/config/site_settings.yml#L540)

Note we can also make per locale defaults here, so Chinese get .cn for free, etc.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2018 年 2 月 2 日午後 9:11 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/22 "2018-02-02T21:11:43Z")

</div>

I think `.org` also needs to be included by default here. `.org` is one of the original TLDs, and still used a lot today. We even use it! [www.discourse.org](http://www.discourse.org) is no longer linked.

If we want to limit it to 3, I’d much rather see `.org` than `.gov`.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 2 月 2 日午後 9:30 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/23 "2018-02-02T21:30:47Z")

</div>

Feel free to add org, I forgot it

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2018 年 2 月 2 日午後 9:31 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/24 "2018-02-02T21:31:49Z")

</div>

Done.  
[https://github.com/discourse/discourse/commit/e2629395905214f5e27c3acdf5929f11dacdfdf7](https://github.com/discourse/discourse/commit/e2629395905214f5e27c3acdf5929f11dacdfdf7)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2018 年 2 月 3 日午前 1:03 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/25 "2018-02-03T01:03:35Z")

</div>

Here’s the top domains by observed requests, grouping by public suffix according to [Cisco Popularity List](http://s3-us-west-1.amazonaws.com/umbrella-static/index.html) :

com, net, org, ([googleapis.com](http://googleapis.com)), io, co, tv, (amazon s3), (amazon ELB), ru, cn, goog, us, uk, me, de, ([co.uk](http://co.uk)), fr, fi

That’s 15, not counting second-level effectiveTLDs.

edit: [Update default linkify TLDs to top 15 by riking · Pull Request #5563 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/5563)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 2 月 3 日午前 1:54 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/26 "2018-02-03T01:54:17Z")

</div>

I am not a huge fan of adding `tv`, `io` or `goog` … `ru` does have a tiny bit of risk cause it can be mistyped in English and magic linked.

I am ok to add `uk` and `co`, some of the other domains as well in lang specific locals.

Keep in mind [https://test.io](https://test.io) is magic linked, this is just about people that magically remember to type in [test.io](http://test.io) cause … reasons?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2018 年 2 月 3 日午前 7:18 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/27 "2018-02-03T07:18:18Z")

</div>

[crates.io: Rust Package Registry](http://crates.io/crates/embedded-hal) is a plausible URL to write out while typing.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [2018 年 2 月 12 日午前 9:41 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/28 "2018-02-12T09:41:29Z")

</div>

I’d rather not have every foo.thing auto-linked. Mistyping ‘. Foo’ as ‘.Foo’ is such an easy one to make. It would be terrible to have a conversation flow distracted by too many links.

If people want links, they should learn how to do it properly. Hyperlinking is an essential part of Internet technologies, and I certainly don’t want to encourage people ignoring it. See EU Copyright reform Article 11 (to criminalize hyperlinks). Instead, Internet users should become aware of why such things get hyperlinked, and what it entails. Having `com|gov|net|org` is fine (although I wonder why `gov` and not `mil` since they are of same generation, and US-specific – I’d say _remove the gov_ 🙂 ) but managing the growing ICANN TLD mess should be avoided IMO, or part of a plugin.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2018 年 2 月 16 日午前 6:51 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/29 "2018-02-16T06:51:21Z")

</div>

Why not whitelist every TLD that is not a noun?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 2 月 16 日午前 6:56 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/30 "2018-02-16T06:56:36Z")

</div>

> [@RGJ](#):
>
> Why not whitelist every TLD that is not a noun?

I personally don’t see why whitelist anything really, it is just so rare for people to type in domains, just like that, vs copying a link. Also [discourse.org](http://discourse.org) loses on https now which is not great, cause now my link is slower.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2018 年 2 月 16 日午前 7:21 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/31 "2018-02-16T07:21:33Z")

</div>

I personally don’t see that either but since you already opted to build a whitelisting mechanism I chose to continue on that idea 🙂

Let’s build a whitelist of sites that are verified to work with https:// so that can be the default protocol for them.

No, just kidding. But at least http will eventually [go away](https://blog.chromium.org/2018/02/a-secure-web-is-here-to-stay.html) while we will be seeing [more and more](http://data.iana.org/TLD/tlds-alpha-by-domain.txt) TLD’s that look like a noun.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [2018 年 2 月 16 日午後 11:47 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/32 "2018-02-16T23:47:16Z")

</div>

Maybe this is also an opportunity to delinkify [example.com](http://example.com) and [mydomain.com](http://mydomain.com)?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 2 月 17 日午前 2:10 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/33 "2018-02-17T02:10:55Z")

</div>

This is such a worm can 🤦‍♂️

I would say that if you don’t want particular domains linked, just disable the feature via the site setting

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 3 月 6 日午前 6:21 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/34 "2018-03-06T06:21:52Z")

</div>

OK per [Restrict domain name autolinking so M.Sc and B.Sc are not auto linked - #19 by sam](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/19) this is done.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 3 月 6 日午前 6:21 UTC](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837/35 "2018-03-06T06:21:55Z")

</div>



[前のページ](https://meta.discourse.org/t/restrict-domain-name-autolinking-so-m-sc-and-b-sc-are-not-auto-linked/75837.md?page=1)
