# Noindex metatag

**URL:** <https://talk.getindico.io/t/noindex-metatag/1672>\
**Category:** Administrators\
**Created:** [February 10, 2020, 6:17pm UTC](https://talk.getindico.io/t/noindex-metatag/1672 "2020-02-10T18:17:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_del\_Moral](https://talk.getindico.io/user_avatar/talk.getindico.io/david_del_moral/32/318_2.png) [@David\_del\_Moral](https://talk.getindico.io/u/David_del_Moral)\
**Post date:** [February 10, 2020, 6:17pm UTC](https://talk.getindico.io/t/noindex-metatag/1672/1 "2020-02-10T18:17:32Z")

</div>

Hi there!

I need to avoid the indexing of certain events by inserting a metatag like the following:

```auto
<meta name="robots" content="noindex">

```

Where should be it placed??? is it viable?

Thanks for your replies.

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [February 11, 2020, 1:50pm UTC](https://talk.getindico.io/t/noindex-metatag/1672/2 "2020-02-11T13:50:19Z")

</div>

Would be rather hard (the root template would need replacement). Maybe use an access restricted event altogether instead.

With the google changes to robots.txt parsing [1] this may be a needed extension ( a flag on event/category to set this meta header).

[1] [Google on robots.txt and noindex meta tags](https://webmasters.googleblog.com/2019/07/a-note-on-unsupported-rules-in-robotstxt.html)

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [February 11, 2020, 2:09pm UTC](https://talk.getindico.io/t/noindex-metatag/1672/3 "2020-02-11T14:09:48Z")

</div>

Would be interesting to know what’s your usecase for not indexing certain events even though they are public.

But yeah, robots.txt sounds like a good alternative, and since you can use the webserver-level alias to serve it from a different location it’d be easy to use a custom one instead of the one that ships with Indico.

---

<div class="post-metadata">

**Author:** ![David\_del\_Moral](https://talk.getindico.io/user_avatar/talk.getindico.io/david_del_moral/32/318_2.png) [@David\_del\_Moral](https://talk.getindico.io/u/David_del_Moral)\
**Post date:** [February 11, 2020, 3:10pm UTC](https://talk.getindico.io/t/noindex-metatag/1672/4 "2020-02-11T15:10:07Z")

</div>

Thank you for your replies.  
In our case we would like to index only public events. Unfortunately, having a directive “disallow: /” in robots.txt is not enough to avoid indexing by Google; if there is a link from an external indexed page to an specific event, Google ignores the disallow directive and indexes the page of the event from such external source. Of course, external sources are not under our control.  
So yes, what Mr. bpedersen2 said makes perfect sense, should be great to have the granularity to define if an event can be indexed or not.

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [February 12, 2020, 1:29pm UTC](https://talk.getindico.io/t/noindex-metatag/1672/5 "2020-02-12T13:29:51Z")

</div>

Should possible by amending modules/events/views.py:WPEventBase.page\_metadata and the template in web/templates/meta.html ( maybe event.effective\_protection\_mode could be used to decide it a noindex meta header is added?)
