Pro-sites disable frontend when not paid

Pro-sites disable frontend when not paid

I would like to offer a free trial for users where they can use my system to create a site, but they MUST login to view the site. Those who aren't logged in will be redirected somewhere else or shown a temporary page.

How can i achieve this? What are the hooks available to achieve this if it cannot be done out of the box?