Skip to content

Instantly share code, notes, and snippets.

@kennethreitz
Created March 29, 2010 04:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kennethreitz/347430 to your computer and use it in GitHub Desktop.
Save kennethreitz/347430 to your computer and use it in GitHub Desktop.
(Passwd) Basic Authentication .htaccess example
Options +Indexes
<Files *>
AuthType Basic
AuthName "Please enter your username and password."
AuthUserFile .htpasswd
Require valid-user
</Files>
#test: test
test:$apr1$B0PZQ...$asbsdGFmsOmaKsTSEE81F.
# generator: http://www.htaccesstools.com/htpasswd-generator/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment