Created
October 25, 2012 16:32
-
-
Save nelsonJM/3953868 to your computer and use it in GitHub Desktop.
Security: Password Protect Site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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