Skip to content

Instantly share code, notes, and snippets.

@kenng
Created August 23, 2021 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenng/c7ffcc90179108bbe462596e7a7bb802 to your computer and use it in GitHub Desktop.
Save kenng/c7ffcc90179108bbe462596e7a7bb802 to your computer and use it in GitHub Desktop.
.htaccess with username password
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user
@kenng
Copy link
Author

kenng commented Aug 23, 2021

# generate the password with 
# https://www.htaccesstools.com/articles/password-protection/`
# copy the "username:password" (e.g. `test:dGRkPurkuWmW2`) to  `/path/to/.htpasswd`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment