¡Important!, eCommerce, WP/CP | Type: OtherDisallow Indexing of PDFs in Media

Important if PDFs are only to be available behind login or downloadable after transaction.

//add to header.php file:

header("X-Robots-Tag: noindex, nofollow", true);

//or add to .htaccess:

<FilesMatch ".(doc|pdf)$">
Header set X-Robots-Tag "noindex, noarchive, nosnippet"
</FilesMatch>

Reference Links