Answer the question
In order to leave comments, you need to log in
How to block PDF indexing?
The site has 1000 pages. About 500 DPF files. It is necessary to hide these files from indexing, because they are not unique and generally superfluous, they interfere with the promotion of the pages themselves. You only need the ability to download them to the user. Entries made in the robots file
Disallow: /pdf/
Disallow: *.pdf
Answer the question
In order to leave comments, you need to log in
The best option is when the final document gives the heading noindex. For example, add a snippet to the site's root .htaccess file or httpd.conf file:
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
the easiest option is to do basic authentication on urls with pdf
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question