You can use htaccess to disable public access.
in your .htaccess file add this.
AuthName "Secure Area"
AuthType Basic
AuthUserFile /path/to/htpasswd/file/.htpasswd
AuthGroupFile /dev/null
require valid-user
don’t forget to change htpasswd address in this.
You can create .htpasswd from here.