Skip to content

Instantly share code, notes, and snippets.

@niamrox
Forked from rahul286/wpcommon.conf
Created February 15, 2016 00:20
Show Gist options
  • Save niamrox/7d76d4f57f7a7559b9ff to your computer and use it in GitHub Desktop.
Save niamrox/7d76d4f57f7a7559b9ff to your computer and use it in GitHub Desktop.
EDD downloads security with EasyEngine
# 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