Created
December 22, 2021 07:10
-
-
Save skounis/e7557fb91d59c88c1c2a3f5fde8641a6 to your computer and use it in GitHub Desktop.
Protect dumps and shell scripts with .htaccess
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
# Protect dumps and shell scripts | |
<Files ~ "\.sql$"> | |
Deny from all | |
</Files> | |
<Files ~ "\.sql.gz$"> | |
Deny from all | |
</Files> | |
<Files ~ "\.sh$"> | |
Deny from all | |
</Files> | |
RedirectMatch ^/$ /web/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment