Last active
January 4, 2022 05:42
-
-
Save erowsika/e9ed0a742555ca35af38d97692588e9b to your computer and use it in GitHub Desktop.
apache secure upload assets folder
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
# | |
# secure directory by disabling script and html execution | |
# | |
<filesMatch "\.(php|php3|php4|php5|php6|php7|php8|pl|py|jsp|asp|htm|html|xhtml|shtml|sh|cgi)$"> | |
Order Deny,Allow | |
Deny from All | |
</filesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment