Skip to content

Instantly share code, notes, and snippets.

@davidthingsaker
Created December 13, 2013 10:21
Show Gist options
  • Save davidthingsaker/7942385 to your computer and use it in GitHub Desktop.
Save davidthingsaker/7942385 to your computer and use it in GitHub Desktop.
Laravel HTTP auth
Create an .htaccess file in the webroot:
AuthUserFile /app/www/public/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd file:
htpasswd -c /app/www/public/.htpasswd [username]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment