How To Force Visitors To Download PDF Files

Using filesmatch and treating like any other media file you can force a user to download the PDF document.

<FilesMatch "\.(?i:pdf)$">
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</FilesMatch>
blog comments powered by Disqus