How do you prevent access to forums by public?

I am trying to prevent access to viewing the forums on the site by visitors that are not logged in.

I have set for the menu to not show a link to the forums but the public can still view them by going to site.com/forum/.

Is there a way to make the forums show an access denied message or something like that?

Thanks in advance.
Alan