Hi:
I have a website that contains pdf links to products info.
This website is indexing the pdf files despite of the restriction being configured in the robots.txt.
The SEO consultant has recommended adding a no index in the pdf sources.
Searching i found that the way to do it is adding the following code in the Web.config
<system.webServer>
<rewrite>
<outboundRules>
<rule name="X-Robots-Tag: noindex to .pdf">
<match serverVariable="RESPONSE_X_Robots_Tag" pattern=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="\.pdf$" />
</conditions>
<action type="Rewrite" value="noindex"/>
</rule>
</outboundRules>
</rewrite>
</system.webServer>
Adding this code, Google still indexing the pdf files and blocking them in the robots.txt
Is there any other way to put a no index in pdf files?
Regards,
Jose