Should I use rel="noindex nofollow noopener or rel="nofollow noopener, to noindex a pdf on my page?

heyquestion

Newbie
Joined
Sep 28, 2023
Messages
4
Reaction score
0
So,
I have seen an error on my search console that a few pages are not indexing due to presence of this tag (rel="noindex nofollow noopener). I have used these tags to noindex a particular pdf on my page. Here is the page link - https://career.guru99.com/fr/top-15-painter-interview-questions/.
Now this tag (rel="noindex nofollow noopener) is present on my other pages also but those pages are indexing. Here is the link to that page - https://career.guru99.com/top-15-painter-interview-questions/.
Please help in this case what is right?
I have used this tag (rel="noindex nofollow noopener) but due to this my whole page is not indexing - https://career.guru99.com/fr/top-15-painter-interview-questions/.
Same tag is used in my previous pages but those are indexing - https://career.guru99.com/top-15-painter-interview-questions/
 
I would just use another way of noindexing your pdf files rather than using the rel attribute. You can do so either through robots.txt like this:
Code:
User-agent: *
Disallow: *.pdf
or
Disallow: filename.pdf

or via .htaccess:
Code:
<Files ~ "\.pdf$">
  Header set X-Robots-Tag "noindex"
</Files>
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock