For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

dean1's avatar
dean1
Icon for Nimbostratus rankNimbostratus
Oct 29, 2020

Adding X-Robots-Tag to http::header

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.

3 Replies

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

    curl -kv https://vip:port 2>&1 | grep X-Robots-Tag
    • dean1's avatar
      dean1
      Icon for Nimbostratus rankNimbostratus

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