Created
September 26, 2018 12:04
-
-
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
This file contains hidden or 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
| # 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