Skip to content

Instantly share code, notes, and snippets.

@anthonysomerset
Created March 2, 2013 16:50
Show Gist options
  • Save anthonysomerset/5071917 to your computer and use it in GitHub Desktop.
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)
#create or update the .htaccess file inside /downloads to prevent information leakage of client data
deny from all
Options -Indexes
# 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