11
Then make a "Site Closed" Block and make it the only one visible to anon users. When registered users log in, they see the rest of the site. This is the only way you can get it to work easily without core modifications.
The site closed code literally blocks everything or anything else from happening, other then logging in.