Hello Montanayank,
Thanks for the question! The solution is actually very simple. You can get a free plugin from Wordpress.org for something called Maintenance Mode. We have an article that will describe it for you: Enabling Maintenance Mode on Wordpress. Check it out and let us know if you need any further assistance.
Regards,
Arnel C.