Expand my Community achievements bar.

can we make DAM pdfs not searchable from search engines?

Avatar

Level 1

can we make DAM pdfs not searchable from search engines?

5 Replies

Avatar

Community Advisor

@rookie80 

 

You would need to add following headers to pdf in Dispatcher

<LocationMatch "^/content/dam.*\.pdf.*">
Header set X-Robots-Tag "noindex, nofollow"
</LocationMatch>

 


Aanchal Sikka

Avatar

Level 1

so where do I do this in AEM? can you please provide screenshots.

Thanks Mansi

Avatar

Community Advisor

This configuration is done in Dispatcher. Please check for any existing config in code base via <LocationMatch keyword

 

It should be configured in following module:

<IfModule mod_headers.c>

 

 


Aanchal Sikka

Avatar

Community Advisor

HI @rookie80, You can prevent PDF from being indexed by search engines using robots.txt file.

Disallow: /*.pdf

 

 

Avatar

Administrator

@rookie80 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni