Files
kennethreitz.org/data/essays/2010/basic_authentication_protected_files_htpasswd.md
T
2024-08-15 18:24:40 -04:00

569 B

Basic Authentication protected files (htpasswd)

## Here's a snippet for password protecting a directory served by ApacheTo set this up, just add `.htaccess` and `.htpasswd` to the desired directory being served by Apache .

Make sure to [generate your own .htpasswd file](http://www.htaccesstools.com/htpasswd-generator/).

http://gist.github.com/347430.js

For more `htaccess` snippets, checkout PerishablePress' Stupid .htaccess Tricks.