keep WP frontend private

Hi there

Is there any easy way to completely prevent all visitors from viewing WP front-end, cause i want WP admin and front-end only available to all registered users such as author, contributor, admin.

Thanks & Regards