Is there a plugin to prevent non-members from browsing site?

Hello, Im using Buddypress Social Theme, and it actually prevents some pages from being viewed unless they are logged in.. but I have things such as Recent Active Members widget etc all displayed on the home page.. So if a non member clicks on that, then they can view the profile, etc...

So I was wondering is there a plugin or method to prevent non members to access any other pages unless its the home page or login page?

just curious