# Adding X-Robots-Tag to http::header

**URL:** <https://community.f5.com/t/adding-x-robots-tag-to-http-header/61815>\
**Category:** Technical Forums\
**Tags:** irules, big-ip, application-delivery\
**Created:** [October 29, 2020, 9:23pm UTC](https://community.f5.com/t/adding-x-robots-tag-to-http-header/61815 "2020-10-29T21:23:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dean1](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@dean1](https://community.f5.com/u/dean1)\
**Post date:** [October 29, 2020, 9:23pm UTC](https://community.f5.com/t/adding-x-robots-tag-to-http-header/61815/1 "2020-10-29T21:23:00Z")

</div>

So I’m trying to add an additional iRule to my VS that adds the “X-Robots-Tag” “noindex” to all responses.

What I have is a single iRule that contains the following code:

when HTTP\_RESPONSE {

HTTP::header insert “X-Robots-Tag” “noindex”

}

So that way I can just add this to any VS that needs it. However, when I do, and test using curl, I don’t ever see the actual header get inserted. I’m obviously missing something but I haven’t quite figured out what I’m missing.

---

<div class="post-metadata">

**Author:** ![jaikumar\_f5](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jaikumar\_f5](https://community.f5.com/u/jaikumar_f5)\
**Post date:** [October 30, 2020, 2:05pm UTC](https://community.f5.com/t/adding-x-robots-tag-to-http-header/61815/2 "2020-10-30T14:05:08Z")

</div>

Your syntax is right, did you overlook it by anychance,

```tcl
curl -kv https://vip:port 2>&1 | grep X-Robots-Tag

```

---

<div class="post-metadata">

**Author:** ![dean1](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@dean1](https://community.f5.com/u/dean1)\
**Post date:** [October 30, 2020, 5:42pm UTC](https://community.f5.com/t/adding-x-robots-tag-to-http-header/61815/3 "2020-10-30T17:42:16Z")

</div>

Ok it is working. I was doing a curl on the fqdn rather than the vip. Thanks!

---

<div class="post-metadata">

**Author:** ![jaikumar\_f5](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jaikumar\_f5](https://community.f5.com/u/jaikumar_f5)\
**Post date:** [November 2, 2020, 12:14pm UTC](https://community.f5.com/t/adding-x-robots-tag-to-http-header/61815/4 "2020-11-02T12:14:40Z")

</div>

Please mark the thread closed.
