Restrict people from sites
There's a contrib module, contentaccess which is fairly easy to use and permissions can be managed on a node by node basis.  

There's a good article about Drupal content access control here