Skip to content

Instantly share code, notes, and snippets.

@erowsika
Last active January 4, 2022 05:42
Show Gist options
  • Save erowsika/e9ed0a742555ca35af38d97692588e9b to your computer and use it in GitHub Desktop.
Save erowsika/e9ed0a742555ca35af38d97692588e9b to your computer and use it in GitHub Desktop.
apache secure upload assets folder
#
# 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