Skip to content

Instantly share code, notes, and snippets.

@rahul286
Created April 25, 2015 15:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rahul286/7373976f67412e61785f to your computer and use it in GitHub Desktop.
Save rahul286/7373976f67412e61785f 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;
}
}
@HandyGadget
Copy link

It would be helpful to us less technical users if you could leave a brief description of where this file is to be located.

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment