Skip to content

Instantly share code, notes, and snippets.

@iammart
Created March 3, 2015 15:37
Show Gist options
  • Save iammart/36a45c7110a9e9239ca5 to your computer and use it in GitHub Desktop.
Save iammart/36a45c7110a9e9239ca5 to your computer and use it in GitHub Desktop.
Protected Directories
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /home/{USERNAME}/public_html/{DIRECTORY}/.htpasswd
require valid-user
# You would need to generate the .htpasswd file using a tool like
# http://www.kxs.net/support/htaccess_pw.html
username:WViI0QcNGzlyg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment