Created
March 30, 2018 18:31
-
-
Save skazhikadyadya/3d637416a3ef2a6662a6ee1dd5044c1b to your computer and use it in GitHub Desktop.
Close WP-CONTENT and UPLOADS
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
location ^~ /wp-content/ { | |
location ~ /wp-content/[^/]*\.php$ { | |
return 404; | |
} | |
location ~ /wp-content/uploads/.+\.php$ { | |
return 404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment