# 被字母 x 遮挡的数字被视为链接（一键预览）

**URL:** https://meta.discourse.org/t/numbers-obscured-by-the-letter-x-treated-as-links-onebox/67440
**Category:** Support
**Created:** [2017年八月4日 11:02 UTC](https://meta.discourse.org/t/numbers-obscured-by-the-letter-x-treated-as-links-onebox/67440 "2017-08-04T11:02:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2017年八月4日 11:02 UTC](https://meta.discourse.org/t/numbers-obscured-by-the-letter-x-treated-as-links-onebox/67440/1 "2017-08-04T11:02:38Z")

</div>

在我们的帮助分类中，有一个表单，我们会要求用户提供一些信息，包括用户网络 IP 的前三位数字。  
有些用户会填写完整的 IP，而版主会编辑帖子，将 IP 的后几位数字替换为 x，例如：

2.235.xxx.xxx

替换为：

2.235.111.222

 ![ZyFMh5w](https://global.discourse-cdn.com/meta/original/4X/4/2/7/427285f853eac099fad3982999b85129cb079319.png)

这种情况仅在我们将 `x` 作为占位符使用时出现，并且是最近网站更新后才发生的，因此我不确定这种行为是否是预期的。

问题是，如果用户点击该链接（实际上并不存在），他们会被重定向到新标签页，并显示错误提示：“无法连接到服务器”。

请问有什么建议吗？

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2017年八月4日 11:17 UTC](https://meta.discourse.org/t/numbers-obscured-by-the-letter-x-treated-as-links-onebox/67440/2 "2017-08-04T11:17:18Z")

</div>

.xxx is a [valid TLD](https://en.wikipedia.org/wiki/.xxx) so xxx.xxx is a valid domain name and 2.235.xxx.xxx is also valid 😉

If you don’t want them to be autolinked, you’ll have to surround them with a backtick

```
`2.235.xxx.xxx`

```

---

<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: [2017年八月4日 11:17 UTC](https://meta.discourse.org/t/numbers-obscured-by-the-letter-x-treated-as-links-onebox/67440/3 "2017-08-04T11:17:57Z")

</div>

> [@Trash](#):
>
> This happens only if we use x

I suppose this is because [.xxx is a TLD](https://en.wikipedia.org/wiki/.xxx)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年八月5日 00:03 UTC](https://meta.discourse.org/t/numbers-obscured-by-the-letter-x-treated-as-links-onebox/67440/4 "2017-08-05T00:03:25Z")

</div>


