Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

How to disable direct access for upload folder/download files?

$
0
0

Replies: 0

I have a site and i sell digital products. However, after moving to a new host i tried testign the links and saw that i can download the files directly. Like example: https://site.com/wp-content/uploads/edd/2017/06/product.zip

I went to: /mysitedirectory/wp-content/uploads/ and .htaccess is in there. checked the codes, and it’s correct too:

Options -Indexes
deny from all
<FilesMatch '\.(jpg|jpeg|png|gif|mp3|ogg)$'>
Order Allow,Deny
Allow from all
</FilesMatch>

I never really changed anything when i moved. I downloaded my entire site’s directory, uploaded to my new host, & imported the database i exported from my old host.

So im really confused why all of a sudden, direct access to the files become avaialble. Is there anything i missed? or something that might cause this problem?


Viewing all articles
Browse latest Browse all 67836

Trending Articles