Password protect an entire Wordpress website?

I have a client asking if they can password protect their entire Wordpress website (which is yet to be developed).

They want to be able to give out a password to their friends and any users, and only these users with the password can get in and see the site. Otherwise, the site will be unavailable for anyone to see.

I assume this be done fairly easily with a .htpasswd setup?

Are there any recommendations or gotchas that anyone knows of? Thanks

well I am testing the use of .htpasswd and getting some mixed results. This site isn’t wordpress - just a test site I use to try different things on it.

The mixed results are this:

Firefox works perfect - it prompts for user/pass and I’m in.
Chrome prompts twice for the user/pass and then I’m in.
IE prompted like 6 times before it let me in.

Hmm, is this a common issue with htpasswd?

I use the Password Protect Wordpress Blog plugin on my dev site, and it works well. I’m not sure how secure it is to workarounds, but it should keep non-hackers out.