Protect Easy Digital Download files from being accessed directly.

Easy Digital Download files won't be able to be downloaded directly from the server. 

https://docs.easydigitaldownloads.com/article/682-protected-download-files-on-nginx
This commit is contained in:
Morgan
2019-12-16 10:44:32 +08:00
committed by GitHub
parent 3a514ce5a7
commit 7bb918b2e3

View File

@@ -94,3 +94,7 @@ location ~* /(?:uploads|files)/.*\.php$ {
location ~ \/wp-admin\/load-(scripts|styles).php {
deny all;
}
# Protect Easy Digital Download files from being accessed directly.
location ~ ^/wp-content/uploads/edd/(.*?)\.zip$ {
rewrite / permanent;
}