Merge pull request #222 from morganhvidt/morganhvidt-edd-1

Protect Easy Digital Download files from being accessed directly.
This commit is contained in:
VirtuBox
2019-12-16 11:16:20 +01:00
committed by GitHub

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;
}