Skip to content

Instantly share code, notes, and snippets.

@alexishida
Created September 26, 2018 12:04
Show Gist options
  • Select an option

  • Save alexishida/3a98e73c96a95c94dc8890ff742482a9 to your computer and use it in GitHub Desktop.

Select an option

Save alexishida/3a98e73c96a95c94dc8890ff742482a9 to your computer and use it in GitHub Desktop.
Nginx security config to use in wordpress with s3 or another cloud storate
# SECURITY ( Valido somente para uploads enviados para s3 ou outros tipos de cloud storage )
location /wp-content/uploads/ {
deny all;
}
location ~* \.(pl|cgi|py|sh|lua)\$ {
return 444;
}
## Deny some files
location ~ /(\.|wp-config.php|readme.html|license.txt) {
deny all;
}
location ^~ /uploads/ {
deny all;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment