-
-
Save magefix/5c7ffa9fdf4ccc2c62c0a20567d3a36e to your computer and use it in GitHub Desktop.
.htaccess to place inside /wp-content/uploads/
This file contains 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
<FilesMatch "\.(php|php\.)$"> | |
Order Allow,Deny | |
Deny from all | |
</FilesMatch> | |
<FilesMatch "\.(php|phtml|php1|php2|php3|php4|php5|pl|py|jsp|asp|html|htm|shtml|sh|cgi|suspected)$"> | |
Order Allow,Deny | |
deny from all | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment