I have my website, say www.example.com, and I want it to be indexed. Anyway I also have one section, www.example.com/section that I don't want to be indexed.
I tried adding the following headers to the pages under that section:
X-Robot-Tag: noindex,nofollow
Moreover, my robots.txt file says:
User-agent: *
Disallow: /section/
I waited about 24h but, searching for "example.com section" on the google the page is still there, at the first place!
What am I doing wrong? Isn't there any way to prevent indexing only a specific section?
X-Robots-Tag
(with ans
).