DigestAuthentication

With digest authentication, the neighbours whose wireless connection you're stealing can still see all the password-protected data you download, BUT they don't get your password as well, so they can't get access to all of your files (and your bank account if you use the same password for everything...).

Put

in, and then wherever you want to restrict files in a web directory, add

to the  file there. When you add users to ~/.htdigest, you have to provide the AuthName as well; I saved mine in  and then use the shell script

as in  when I need to add a new user.