How to noindex comment/reply in Drupal 7 I use Drupal 7, and I am trying to use the "noindex" meta tag to prevent http://example.com/comment/reply/43/738 from being indexed by search engines.

The comment/reply page is being indexed, even though I've used the following role in robots.txt:

Disallow: /comment/reply/


In which template file will I need to incorporate "noindex" meta tag for /comment/reply/ pages?
You can use any of this code in robots.txt:

User-agent: *
Disallow: /*comment


This will neglect every URL that contains comment.

You can also use the following, to neglect every URL containing /comment. 

User-agent: *
Disallow: /comment/reply




User-agent: *
Disallow: /comment


After you do this, check whether it is working or not by using the Google Robots.txt checker.