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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user