Skip to content

Instantly share code, notes, and snippets.

@skounis
Created December 22, 2021 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skounis/e7557fb91d59c88c1c2a3f5fde8641a6 to your computer and use it in GitHub Desktop.
Save skounis/e7557fb91d59c88c1c2a3f5fde8641a6 to your computer and use it in GitHub Desktop.
Protect dumps and shell scripts with .htaccess
# 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