I have several .pdf files, which should be viewed on my website by clicking a link on a page. But when a pdf file opens, in the address bar the directory where all .pdf files reside is visible. So if the user enters http://example.com/myDir in the address bar he will see and be able to download all files at once. But I don't want that!When I chmod 644 myDir, the files are not visible even for my site - i.e. you can not open them by clicking the link I have mentioned. How to solve this problem?
How to restrict the download of all files in a folder?
links;pdf;download