If you go to your admin CP, click 'Users' in the top header -> List User Groups -> *Select the Unregistered / Unconfirmed group* then remove their permissions accordingly. If you have disabled enough (could just do all) then they shouldn't be able to view any of your forums, topics, posts, members etc and will simply be presented with a login / register page.
To re-enable, simply grant the relevant permissions again.