E
E
Egor Antropov2019-06-21 10:58:15
Search Engine Optimization
Egor Antropov, 2019-06-21 10:58:15

How to make a pdf file non-indexable?

It is necessary to remove several PDF files from Google and Yandex.5d0c8e15242af901946858.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
archelon, 2019-06-21
@archelon

1. write the corresponding rule in robots.txt
2. write nofollow in links to files
3. remove from sitemap.xml, if they are there.
4. in htaccess you can write this:

<FilesMatch "\.pdf$">
  header set x-robots-tag: noindex
</FilesMatch>

A
Alexander Denisov, 2019-06-21
@Grinvind

Should I remove all PDFs from the search results? Then add to robots.txt
Well, through the tools in the webmasters' offices, check by url, after adding this rule, is the file indexed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question