How to disable DAM Assets Google search / Search Engine in AEM ?


Question: How can we make PDF files in DAM Assets non-searchable from search engines ?

Answer: You have to implement a checkbox for the assets,  Now your next task should be to implement a event handler / workflow / scheduler which will update the robots.txt file dynamically.

Example: Whenever user check/uncheck the custom implemented checkbox, it will get store in JCR. Now any of event handler / workflow / scheduler  will take that stored property and updated the robot.txt file accordingly.

For PDF we do not have <meta> tag like we have for pages.

Here is more for you:

1) Use robots.txt to block the files from search engines crawlers:

2) Use rel=”nofollow” on links to those PDFs

Complete Documentation:

AEM Community Thread Link 1, Link 2

Leave a Reply

Your email address will not be published. Required fields are marked *