# How to add noindex to an entire category?

**URL:** https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637
**Category:** Support
**Created:** [23.Сентябрь.2017 14:25:26 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637 "2017-09-23T14:25:26Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![pacoesni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacoesni/32/79273_2.png) [@pacoesni](https://meta.discourse.org/u/pacoesni)
#### Post date: [23.Сентябрь.2017 14:25:26 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/1 "2017-09-23T14:25:26Z")

</div>

Hi guys, I just open a new discourse community…of course we wanna be index on Google and it’s friends, but we’re gonna open a category that we don’t want to show with any search bot. So the simple question is How to add “nofollow” to an entire category?

Cheers.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [23.Сентябрь.2017 14:58:17 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/2 "2017-09-23T14:58:17Z")

</div>

Change the permissions to require being logged in.

---

<div class="post-metadata">

### Author: ![pacoesni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacoesni/32/79273_2.png) [@pacoesni](https://meta.discourse.org/u/pacoesni)
#### Post date: [23.Сентябрь.2017 15:39:20 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/3 "2017-09-23T15:39:20Z")

</div>

Not so bad. But what if I just want to hide it from the search bots?

---

<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: [23.Сентябрь.2017 15:44:56 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/4 "2017-09-23T15:44:56Z")

</div>

Links already have nofollow added to them. If staff users want to post nofollow links, you can make an `<a>` tag instead of the other methods of making links.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [23.Сентябрь.2017 16:15:47 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/5 "2017-09-23T16:15:47Z")

</div>

Oh. I totally missed the question. I thought he wanted the category not to be indexed.

Right. All links have nofollow for TL2 and below.

---

<div class="post-metadata">

### Author: ![pacoesni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacoesni/32/79273_2.png) [@pacoesni](https://meta.discourse.org/u/pacoesni)
#### Post date: [23.Сентябрь.2017 17:13:51 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/6 "2017-09-23T17:13:51Z")

</div>

Right. I just want an entire category and all its posts not to be indexed. I don’t care about the links. I’m talking about the post.

---

<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: [23.Сентябрь.2017 18:10:28 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/7 "2017-09-23T18:10:28Z")

</div>

Ah. I don’t think there is a facility to add noindex to posts in a category, and you certainly couldn’t add it to parts of the topic list without tanking the ranking of your entire site.

You’d have to write a plug-in that adds the meta directive to the crawler layout, I don’t think there’s much hope for adding it with JavaScript.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [23.Сентябрь.2017 18:13:33 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/8 "2017-09-23T18:13:33Z")

</div>

If you want the posts to be publicly available, but denied in robots.txt, you need a plugin. I sort of wrote one. If you’ve got a budget or I find the time, I’ll make it available.

---

<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: [23.Сентябрь.2017 19:26:48 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/9 "2017-09-23T19:26:48Z")

</div>

> [@pfaffman](#):
>
> denied in robots.txt,

Two problems with that: Noindex breaks if you deny the page in robots.txt (can’t load the page to see the noindex), and that would make the list extremely large.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [23.Сентябрь.2017 22:52:57 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/10 "2017-09-23T22:52:57Z")

</div>

He wants the **posts** in the category not to be indexed, so denying the category is, I think, what he means.

---

<div class="post-metadata">

### Author: ![pacoesni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacoesni/32/79273_2.png) [@pacoesni](https://meta.discourse.org/u/pacoesni)
#### Post date: [23.Сентябрь.2017 23:09:18 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/11 "2017-09-23T23:09:18Z")

</div>

Exactly. The things is that I’m trying to connect WP with Discourse with the plugin and manage the comments of my blog posts with Discourse. But I don’t want Google indexing the entry on Discourse because it would be a duplicate of the Wordpress entry, thinking on SEO of course. So I think the proper way to do this is creating a Category, like ‘Feedback’, on Discourse and adding a nofollow by default to all entries on it.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [24.Сентябрь.2017 02:25:23 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/12 "2017-09-24T02:25:23Z")

</div>

Oh. That. See [https://experts.feverbee.com/t/is-it-possible-for-the-feverbee-blog-posts-to-be-pulled-in-full/6192/7](https://experts.feverbee.com/t/is-it-possible-for-the-feverbee-blog-posts-to-be-pulled-in-full/6192/7) .

I see. I’m not an SEO person. I think that adding the no follow for the category to robots.txt will do what you want.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [24.Сентябрь.2017 02:56:17 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/13 "2017-09-24T02:56:17Z")

</div>

I think the effectiveness depends on whether or not any links get exposed

> **[Block Search Indexing with noindex | Google Search Central  |  Documentation...](https://developers.google.com/search/docs/crawling-indexing/block-indexing?hl=en&visit_id=639159111348921078-3537260572&rd=1)**
>
> A noindex tag can block Google from indexing a page so that it won't appear in Search results. Learn how to implement noindex tags with this guide.

> … the page can still appear in search results, for example if other pages link to it.

I think your best options are to either put those posts in a non-public category (no “everyone” permissions) or to not worry about which one Google chooses to return in the results.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [08.Июнь.2024 12:44:18 UTC](https://meta.discourse.org/t/how-to-add-noindex-to-an-entire-category/70637/14 "2024-06-08T12:44:18Z")

</div>

Эта тема была автоматически закрыта через 2449 дней. Новые ответы больше не допускаются.
