Skip to content

Instantly share code, notes, and snippets.

@samarpanda
Created March 1, 2012 22:57
Show Gist options
  • Save samarpanda/1953828 to your computer and use it in GitHub Desktop.
Save samarpanda/1953828 to your computer and use it in GitHub Desktop.
Htaccess configuration for password protected directory on web
AuthType Basic
AuthName "Restricted Resource"
AuthUserFile PATH_OF_HTPASSES_FILE
Require valid-user
# Relplace PATH_OF_HTPASSES_FILE with path to file .htpasses
USER_NAME:ENCODED_PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment