# 如何为 tag 页面实现“noindex”标头？

**URL:** https://meta.discourse.org/t/how-to-implement-noindex-header-to-tag-pages/161253
**Category:** Support
**Created:** [2020 年8 月 18 日 09:45 UTC](https://meta.discourse.org/t/how-to-implement-noindex-header-to-tag-pages/161253 "2020-08-18T09:45:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### 作者： ![PoojaPatel](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PoojaPatel](https://meta.discourse.org/u/PoojaPatel)
#### 发布日期： [2020 年8 月 18 日 09:45 UTC](https://meta.discourse.org/t/how-to-implement-noindex-header-to-tag-pages/161253/1 "2020-08-18T09:45:04Z")

</div>

如何在标签页实现“noindex”头部？

目前我使用的是“2.6.0.beta1”版本，但在标签页中找不到“noindex”头部。

此“noindex”功能在以下版本中发布：  
[Discourse 2.5.0.beta5 Release Notes - #2 by jomaxro](https://meta.discourse.org/t/discourse-2-5-0-beta5-release-notes/152760/2)

- 为标签页添加 noindex 头部
- 为徽章、小组和 /my 页面添加 noindex 头部

---

<div class="post-metadata">

### 作者： ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### 发布日期： [2020 年8 月 18 日 10:36 UTC](https://meta.discourse.org/t/how-to-implement-noindex-header-to-tag-pages/161253/2 "2020-08-18T10:36:38Z")

</div>

您无需执行任何操作即可实现它。它默认已包含。我确实在 Meta 上看到了这一点：

```plaintext
~$ curl -X GET -I https://meta.discourse.org/tag/pr-welcome
HTTP/2 200
date: Tue, 18 Aug 2020 10:35:08 GMT
content-type: text/html; charset=utf-8
server: nginx
vary: Accept-Encoding
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-download-options: noopen
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
x-discourse-route: tags/show
x-robots-tag: noindex
cache-control: no-cache, no-store
content-security-policy: base-uri 'none'; object-src 'none'; script-src https://meta.discourse.org/logs/ https://meta.discourse.org/sidekiq/ https://meta.discourse.org/mini-profiler-resources/ https://global.discourse-cdn.com/meta/assets/ https://global.discourse-cdn.com/meta/brotli_asset/ https://meta.discourse.org/extra-locales/ https://d3bpeqsaub0i6y.cloudfront.net/highlight-js/ https://d3bpeqsaub0i6y.cloudfront.net/javascripts/ https://d3bpeqsaub0i6y.cloudfront.net/plugins/ https://d3bpeqsaub0i6y.cloudfront.net/theme-javascripts/ https://d3bpeqsaub0i6y.cloudfront.net/svg-sprite/ https://www.google-analytics.com/analytics.js; worker-src 'self' https://global.discourse-cdn.com/meta/assets/ https://global.discourse-cdn.com/meta/brotli_asset/ https://d3bpeqsaub0i6y.cloudfront.net/javascripts/ https://d3bpeqsaub0i6y.cloudfront.net/plugins/
x-discourse-cached: true
x-request-id: b8644a71-b0b0-41fb-828f-78df6b7c7800
x-runtime: 0.002249
x-discourse-trackview: 1
strict-transport-security: max-age=31536000

```

您是如何测试这些标头的？

---

<div class="post-metadata">

### 作者： ![PoojaPatel](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PoojaPatel](https://meta.discourse.org/u/PoojaPatel)
#### 发布日期： [2020 年8 月 19 日 15:29 UTC](https://meta.discourse.org/t/how-to-implement-noindex-header-to-tag-pages/161253/3 "2020-08-19T15:29:40Z")

</div>

@jomaxro 感谢您的支持。

是的，我们已在头部发现了“noindex”。

---

<div class="post-metadata">

### 作者： ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### 发布日期： [2020 年9 月 18 日 15:34 UTC](https://meta.discourse.org/t/how-to-implement-noindex-header-to-tag-pages/161253/4 "2020-09-18T15:34:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
