Skip to content

Instantly share code, notes, and snippets.

@Evan-R
Created April 16, 2014 20:30
Show Gist options
  • Select an option

  • Save Evan-R/10929854 to your computer and use it in GitHub Desktop.

Select an option

Save Evan-R/10929854 to your computer and use it in GitHub Desktop.
.htaccess password protection
# in .htaccess file
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /path/to/passwords/.htpasswd
Require valid-user
# sh
sudo htpasswd -c /path/to/passwords/.htpasswd username
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment