I want to disallow pages that develop after someone comments on my post. For example, recently I got a comment (number 12) on my post page and a new page was formed with URL:
https://example.com/post/#comment-12
Now if another person comments (number 13) on my post then I am expecting a page URL like:
https://example.com/post/#comment-13
So my question is what should I put in my robots.txt disallow path to avoid google index my post pages that are developing after comments.
Currently, the path I have given in my robots.txt file to restrain google from indexing my comment files with different number is as follow:
Disallow: /*#comment-
By this directive, I mean google shouldn't index any url related to my website that includes #comment-
I am not sure whether I am right or not please assist me in disallowing my comments.
Thanks. Allah Bless You.