The simplest way to do this is to install a Wordpress maintenance mode type plugin that will allow you to easily disable access to the public but not require much work.