DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Apache Htaccess Authentication
For setting up a quick protected directory, put this in .htaccess
AuthName "Some Admin Area" AuthType Basic AuthUserFile /home/someclient/public_html/admin/.htpasswd require valid-user
And then create the .htpasswd file via
htpasswd -c .htpasswd someuser




