Reputation: 7773
I am using wordpress and I have a folder under wp-content/ structured as:
folder
|-folder1
|-file.pdf
|-folder2
|-.htaccess
I have all PDF files distributed within subfolders in the folder directory. I don't want all files inside the folder to be accessed directly. so I place the code in .htaccess
deny from all
but this does not seem to prevent that purpose. when I enter this url: http://mysite.come/wp-content/folder/folder1/file.pdf, the file still can be downloaded, which it shouldn't. what seems to be wrong here? thanks for help.
Upvotes: 0
Views: 809
Reputation: 5180
the .htaccess file sets directives to the current folder and sub-folders.
important:
Upvotes: 1