Hello,
Thanks for the question about making your site private during development and testing. We have an article that may help: Redirect Vistors to Under Construction page. This article also includes a way to restrict who can access the site.
I hope that helps to answer your question! If you require further assistance, please let us know!
Regards,
Arnel C.