Created
March 2, 2013 16:50
-
-
Save anthonysomerset/5071917 to your computer and use it in GitHub Desktop.
Hostbill downloads folder lockdown to prevent public access to your SQL backups in /downloads (and thus your clients information)
This file contains hidden or 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
#create or update the .htaccess file inside /downloads to prevent information leakage of client data | |
deny from all | |
Options -Indexes |
This file contains hidden or 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
# place this in your hostbill vhost above your location / block | |
location ^/downloads/ { | |
deny all; | |
autoindex off; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment