Skip to content

Instantly share code, notes, and snippets.

@laurelstreng
Created November 1, 2014 23:19
Show Gist options
  • Save laurelstreng/daab52174ad7e508e8f9 to your computer and use it in GitHub Desktop.
Save laurelstreng/daab52174ad7e508e8f9 to your computer and use it in GitHub Desktop.
Password protect your website using the .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /full/path/name/.htpasswd
require valid-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment