How do I password protect my forum and create registration for new users to reigster?

How do I password protect my forum and create registration for new users to reigster?