Skip to content

Instantly share code, notes, and snippets.

@nelsonJM
Created October 25, 2012 16:32
Show Gist options
  • Select an option

  • Save nelsonJM/3953868 to your computer and use it in GitHub Desktop.

Select an option

Save nelsonJM/3953868 to your computer and use it in GitHub Desktop.
Security: Password Protect Site
/* put this in your .htaccess file */
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
require valid-user
/* put this in your .htpasswd file */
username1:encrypted password
username2:encrypted password
/* help with generating code & encrypting pw */
http://tools.dynamicdrive.com/password/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment