mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
665 B
665 B
title, date, category
| title | date | category |
|---|---|---|
| Basic Authentication Protected Files (htpasswd) | 2010-01-01 | Web Development |
Basic Authentication Protected Files (htpasswd)
Here's a snippet for password protecting a directory served by Apache
To 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://gist.github.com/347430.js
For more htaccess snippets, checkout PerishablePress' Stupid .htaccess Tricks.