[Resolved] forbid browser to display a PDF file download · · WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › forbid browser to display a PDF file download Tagged: download pdf not diplay it This topic contains 1 reply, has 1 voice, and was last updated by olivier 7 months, 3 weeks ago. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts November 3, 2018 at 6:06 pm #830 olivierParticipant I’m using un button (not the sdm_download button feature but a theme Avada button) using that link: ?smd_process_download=1&download_id=xxxxx All browsers are displaying the PDF instead of the download box. Is there a way to force the browser to not open the file? Thanks for any help November 4, 2018 at 11:43 pm #833 olivierParticipant Solution found: put an .htaccess file inside the folder containing the pdf to be downloaded using sdm_download plugin. Files offered to download must be in their own specific folder. Content of the .htaccess is: <FilesMatch “\.pdf$”> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> works like a charm! Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.