Authenticating users

hi,
how can i setup a username and password authentication before a user can browse my site?
thanks