-
-
Save niamrox/7d76d4f57f7a7559b9ff to your computer and use it in GitHub Desktop.
EDD downloads security with EasyEngine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more details, refer - https://easydigitaldownloads.com/support/topic/download-files-not-protected-nginx-under-easyengine/ | |
# NOT tested (yet) | |
location /wp-content/uploads/ { | |
location ~ ^/wp-content/uploads/edd/(.*?)\.zip$ { | |
rewrite / permanent; | |
} | |
location ~ \.php$ { | |
#Prevent Direct Access Of PHP Files From Web Browsers | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment